-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
76 lines (61 loc) · 1.56 KB
/
.bash_profile
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# adapt local definitions
if [ -f ~/.local.bash ]; then
. ~/.local.bash
fi
# User specific environment and startup programs
#### START PATH settings ####
mkdir -p -m +x $HOME/bin
PATH=$HOME/bin:$PATH
if [ -d ~/.rbenv ]; then
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
fi
if [ -d ~/.pyenv ]; then
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
fi
if [ -d ~/.exenv ]; then
export PATH="$HOME/.exenv/bin:$PATH"
eval "$(exenv init -)"
fi
if [ -d ~/.cargo ]; then
export PATH="$HOME/.cargo/env:$PATH"
fi
if [ -x "`which go`" ]; then
mkdir -p $HOME/.go_local/bin
export GOROOT=`go env GOROOT`
export GOPATH=$HOME/.go_local
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
fi
# uniq PATH
_path=""
for _p in $(echo $PATH | tr ':' ' '); do
case ":${_path}:" in
*:"${_p}":* )
;;
* )
if [ "$_path" ]; then
_path="$_path:$_p"
else
_path=$_p
fi
;;
esac
done
PATH=$_path
unset _p
unset _path
#### END PATH settings ####
# Display Git Branch name
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\e[38;5;110m\]\u@\h\e[38;5;252m\]:\e[38;5;150m\]\w\e[38;5;216m\]$(__git_ps1 " (%s)")\e[38;5;252m\]\n\$ '
# Color Settings
export LS_COLORS='di=01;34:ln=01;35:so=01;32:ex=01;31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'
export PROMPT_COMMAND="dispatch_hist"
shopt -s histappend
export PROMPT_COMMAND_HISTSAVE="history -a;"