-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
66 lines (51 loc) · 1.47 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
##### set colors #####
export PS1="\[\033[36m\]\u\[\033[m\]\[\033[33;1m\]\w\[\033[m\]\n\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -Fh'
######################
# export GOROOT="`which go`"
PATH="/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin" #:${GOROOT}"
if [ -d ~/homebrew ]; then
PATH="${HOME}/homebrew/bin:${PATH}"
fi
if [ -d ~/bin ]; then
PATH="${HOME}/bin:${PATH}"
fi
if [ -d "${GOPATH}" ]; then
PATH="${PATH}:${GOPATH}/bin"
fi
# https://github.com/nvbn/thefuck/
# brew install thefuck
eval $(thefuck --alias)
# personal is my personal mac
if [ -f ~/.personal_spec ]; then
. ~/.personal_spec
fi
if [ -f ~/.randall_spec ]; then
. ~/.randall_spec
fi
if [ -f ~/.work_spec ]; then
. ~/.work_spec
fi
if [ -f ~/.bash_functions ]; then
. ~/.bash_functions
fi
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
export PATH
# https://github.com/magicmonty/bash-git-prompt#via-homebrew-on-mac-os-x
# brew install bash-git-prompt
if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then
__GIT_PROMPT_DIR=$(brew --prefix)/opt/bash-git-prompt/share
source "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh"
else
GIT_PROMPT_ONLY_IN_REPO=1
source ~/.bash-git-prompt/gitprompt.sh
fi
# https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion
# brew install git && brew install bash-completion
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi