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
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
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
alias ls='ls --color=auto'
@ -84,9 +86,11 @@ if ${use_color} ; then
else
if [[ ${EUID} == 0 ]] ; then
# show root@ when we don't have colors
PS1='\u@\h \W \$ '
#PS1='\u@\h \W \$ '
PS1='\u \W ! '
else
PS1='\u@\h \w \$ '
#PS1='\u@\h \w \$ '
PS1='\u \W # '
fi
fi