forked from dulacp/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
executable file
·46 lines (40 loc) · 1.19 KB
/
Copy pathbashrc
File metadata and controls
executable file
·46 lines (40 loc) · 1.19 KB
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
source ~/.aliases
export EDITOR='vim'
#
# If we have boxen installed, source the Boxen environment
#
if [ -f /opt/boxen/env.sh ]; then
source /opt/boxen/env.sh
fi
#
# Add bash_autocompletion for brew
#
if type brew &>/dev/null && [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
#
# 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 /opt/boxen/homebrew/etc/bash_completion.d/git-prompt.sh ]; then
source /opt/boxen/homebrew/etc/bash_completion.d/git-prompt.sh
elif [ -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