-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.bashrc
More file actions
53 lines (41 loc) · 1.41 KB
/
.bashrc
File metadata and controls
53 lines (41 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# load aliases
if [ -f ~/.aliases ]; then
source ~/.aliases
fi
# enter vi mode
set -o vi
# change python encoding
export PYTHONIOENCODING=UTF-8
# add tex to path
TEX_PATH=/Library/TeX/texbin
export PATH=$PATH:$TEX_PATH
# add malmo path
export MALMO_XSD_PATH="/Users/henrik/Documents/hsu/game_environment/project-malmo/MALMO/MalmoPlatform/Schemas"
#this is my promt... haha, ridiculous (i was bored...)
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\[\033[01;36m\]\$(parse_git_branch) \[\033[00m\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\$\[\033[00m\] "
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/usr/local/Caskroom/miniconda/base/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/usr/local/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]; then
. "/usr/local/Caskroom/miniconda/base/etc/profile.d/conda.sh"
else
export PATH="/usr/local/Caskroom/miniconda/base/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# add tex to path
export PATH ="/Library/TeX/texbin:$PATH"
# very important:
fortune | cowsay
# no zshellwarnings all the time
export BASH_SILENCE_DEPRECATION_WARNING=1
# ipbd instead of pdb by default breakpoint
export PYTHONBREAKPOINT=ipdb.set_trace
export TERM=tmux-256color