forked from ecliptik/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
26 lines (22 loc) · 753 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
#Set vi keybindings
set -o vi
#Turn off stop/resume on interactive shells
[[ $- == *i* ]] && stty -ixon
#Set a standard non-colorized prompt
PS1="${TITLEBAR}\n\u@\h:${os_name}-${arch}:\n\W $ "
#Use features depending on TERM type
case ${TERM} in
xterm*|screen*|rxvt*)
#Remove __git_ps1 features for solaris
case ${os_name} in
solaris*)
PS1="${TITLEBAR}\n${reset}${LCyan}\u${reset}@${LYellow}\h${reset}:${LGreen}${os_name}-${arch}:${LMagenta}${reset}\n${LRed}\W${reset} $ "
;;
#Use additional features for everything else
*)
PS1="${TITLEBAR}\n${reset}${LCyan}\u${reset}@${LYellow}\h${reset}:${LGreen}${os_name}-${arch}:${LMagenta}\$(__git_ps1)${reset}\n${LRed}\W${reset} $ "
;;
esac
;;
esac
export PS1