changed bash prompt

This commit is contained in:
aj 2019-04-26 12:28:33 +01:00
parent 02bd07adcc
commit e19c31073a

12
.bashrc
View File

@ -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