-
Notifications
You must be signed in to change notification settings - Fork 5
/
.bashrc
31 lines (26 loc) · 881 Bytes
/
.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
#!/bin/bash
# Make sure that .profile has been loaded, even if
# there was no "login shell" in our lineage.
if [ -z "$_PROFILE_LOADED" ]; then
source ~/.profile
else
# Make sure that we have the array utility functions.
source ~/.profile.d/arrayutil
fi
# Include system-wide config; Mac OS NOTEs:
# - setting PS1 above will cause this to be a noop
# - the only other effect is a bunch Terminal.app specific integrations...
# - ...so this is especially irrelevant for iTerm2 users
[ -f /etc/bashrc ] && source /etc/bashrc
source ~/.aliases
if [ -f ~/.promptline.sh ]; then
source ~/.promptline.sh
else
export PS1='\u@\h \w\$ '
if type __git_ps1 &>/dev/null; then
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWUPSTREAM="verbose"
export PS1='\u@\h \w$(__git_ps1 " (%s)")\$ '
fi
fi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash