-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
44 lines (33 loc) · 1.23 KB
/
bashrc
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
export EDITOR="vim"
export PROMPT_COMMAND="__set_prompt"
# bash
[[ -f $HOME/.bash/functions ]] && source $HOME/.bash/functions
[[ -f $HOME/.bash/aliases ]] && source $HOME/.bash/aliases
[[ -f $HOME/.bashrc.local ]] && source $HOME/.bashrc.local
# homebrew
HOMEBREW_PREFIX=$(brew --prefix)
if [[ -f $HOMEBREW_PREFIX/etc/bash_completion ]]; then
source $HOMEBREW_PREFIX/etc/bash_completion
fi
export PATH="/usr/local/sbin:$PATH"
# git
export GIT_PS1_SHOWDIRTYSTATE=1
if [[ -f $HOMEBREW_PREFIX/share/git-core/contrib/completion/git-prompt ]]; then
source $HOMEBREW_PREFIX/share/git-core/contrib/completion/git-prompt
fi
[[ -n `declare -f -F __git_complete` ]] && __git_complete g _git
if which hub > /dev/null; then eval "$(hub alias -s)"; fi
# rbenv
export RBENV_ROOT=/usr/local/var/rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# okta
if [[ -f "$HOME/.okta/bash_functions" ]]; then
. "$HOME/.okta/bash_functions"
fi
if [[ -d "$HOME/.okta/bin" && ":$PATH:" != *":$HOME/.okta/bin:"* ]]; then
PATH="$HOME/.okta/bin:$PATH"
fi