-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbashrc
More file actions
executable file
·33 lines (28 loc) · 850 Bytes
/
bashrc
File metadata and controls
executable file
·33 lines (28 loc) · 850 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
31
32
33
source ~/.aliases
export EDITOR='vim'
# Add dotfiles bin path
export PATH="$PATH:$HOME/.bin"
#
# If rbenv is installed, enable shims and autocompletion
#
if type rbenv &>/dev/null; then
eval "$(rbenv init -)"
fi
#
# Load __git_ps1 function to add current branch to the PS1
# This may exist in different places depending on the version
# of Git installed and the method of which it was installed,
# so fallback to each one in turn.
#
if [ -f /usr/share/git-core/git-prompt.sh ]; then
source /usr/share/git-core/git-prompt.sh
elif [ -f /etc/bash_completion.d/git ]; then
source /etc/bash_completion.d/git
elif [ -f /usr/local/etc/bash_completion.d/git-prompt.sh ]; then
source /usr/local/etc/bash_completion.d/git-prompt.sh
fi
if type __git_ps1 &>/dev/null; then
export PS1='\h:\W$(__git_ps1 " (%s)")\$ '
else
export PS1='\h:\W\$ '
fi