modified my .bashrc (different colors for users and root)
This commit is contained in:
parent
1f23129406
commit
cc7ff386ae
10
.bashrc
10
.bashrc
|
|
@ -68,13 +68,15 @@ fi
|
|||
# set a fancy prompt
|
||||
if [ $UID == 0 ]; then
|
||||
# root: red
|
||||
PS_COLOR="\[\033[1;31m\]"
|
||||
#PS_COLOR="\[\033[1;31m\]"
|
||||
export PS1="\t \[$(tput bold)\]\[$(tput sgr0)\]\[\033[38;5;1m\]\u\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;7m\]@\h\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;1m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]\n\\$ \[$(tput sgr0)\]"
|
||||
else
|
||||
# user
|
||||
PS_COLOR="\[\033[33m\]"
|
||||
#PS_COLOR="\[\033[33m\]"
|
||||
export PS1="\t \[$(tput sgr0)\]\[\033[38;5;3m\]\u\[$(tput sgr0)\]\[\033[38;5;7m\]@\h\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;87m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]\n\\$ \[$(tput sgr0)\]"
|
||||
fi
|
||||
#PS1="\t ${PS_COLOR}${debian_chroot:+($debian_chroot)}\u\[\033[0m\]@\h:\w\$ "
|
||||
export PS1="\t \[$(tput sgr0)\]\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\h:\[$(tput sgr0)\]\[\033[38;5;87m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\] \n\\$ \[$(tput sgr0)\]"
|
||||
#PS1="\t ${PS_COLOR}${debian_chroot:+($debian_chroot)}\u@\h:\w\$ "
|
||||
#export PS1="\t \[$(tput sgr0)\]\[\033[38;5;11m\]\u\[$(tput sgr0)\]${PS_COLOR}@\h:\[$(tput sgr0)\]\[\033[38;5;87m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\] \n\\$ \[$(tput sgr0)\]"
|
||||
|
||||
# if this is an xterm modify the title
|
||||
case $TERM in
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user