changed bash prompt
This commit is contained in:
parent
02bd07adcc
commit
e19c31073a
12
.bashrc
12
.bashrc
@ -72,9 +72,11 @@ if ${use_color} ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${EUID} == 0 ]] ; then
|
if [[ ${EUID} == 0 ]] ; then
|
||||||
PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] '
|
#PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] '
|
||||||
|
PS1='\[\e[32m\]\u\[\e[m\] \W ! '
|
||||||
else
|
else
|
||||||
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
|
#PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
|
||||||
|
PS1='\[\e[32m\]\u\[\e[m\] \W # '
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
@ -84,9 +86,11 @@ if ${use_color} ; then
|
|||||||
else
|
else
|
||||||
if [[ ${EUID} == 0 ]] ; then
|
if [[ ${EUID} == 0 ]] ; then
|
||||||
# show root@ when we don't have colors
|
# show root@ when we don't have colors
|
||||||
PS1='\u@\h \W \$ '
|
#PS1='\u@\h \W \$ '
|
||||||
|
PS1='\u \W ! '
|
||||||
else
|
else
|
||||||
PS1='\u@\h \w \$ '
|
#PS1='\u@\h \w \$ '
|
||||||
|
PS1='\u \W # '
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user