-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
30 lines (26 loc) · 766 Bytes
/
.bashrc
File metadata and controls
30 lines (26 loc) · 766 Bytes
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
set -o vi
if [ -s ~/.aliases -a -r ~/.aliases ]; then
source ~/.aliases
fi
UNAME=$(uname)
if [ $UNAME = "Linux" ]; then
BASH_COMPLETION=/etc/bash_completion
if [ -s $BASH_COMPLETION -a -r $BASH_COMPLETION ]; then
source $BASH_COMPLETION
fi
elif [ $UNAME = "Darwin" -a -n $(brew --prefix) ]; then
BASH_COMPLETION=$(brew --prefix)/etc/bash_completion.d
if [ -d $BASH_COMPLETION ]; then
for i in $BASH_COMPLETION/*; do
source $i
done
fi
fi
GIT_PS1_SHOWUNTRACKEDFILES='nonempty'
GIT_PS1_SHOWUPSTREAM='verbose'
if [[ -n $SSH_TTY ]]; then
export PS1='\u@\h:\W $(__git_ps1 "(%s)")> '
else
export PS1='\W $(__git_ps1 "(%s)")> '
fi
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting