added $/# to the prompt
parent
d503b20ae0
commit
8222f204ca
|
@ -49,13 +49,13 @@ HISTFILESIZE=-1
|
|||
PROMPT_COMMAND="PS1=\"[\[\e[03$(
|
||||
if [ $EUID -eq 0 ]
|
||||
then
|
||||
echo '1;02m'
|
||||
echo -n '1;02m'
|
||||
else
|
||||
if [ -n "$(groups | grep 'wheel\|sudo')" ];
|
||||
then
|
||||
echo '2;01m'
|
||||
echo -n '2;01m'
|
||||
else
|
||||
echo '6;01m'
|
||||
echo -n '6;01m'
|
||||
fi
|
||||
fi
|
||||
)\]\u@\h\[\e[0m\]]:\$(
|
||||
|
@ -68,7 +68,14 @@ PROMPT_COMMAND="PS1=\"[\[\e[03$(
|
|||
fi
|
||||
echo -n \$PROMPT_ERRORLEVEL
|
||||
echo -n '\[\e[00m\]'
|
||||
):\[\e[034;01m\]\$(pwd)\[\e[0m\]:> \""
|
||||
):\[\e[034;01m\]\$(pwd)\[\e[0m\]:$(
|
||||
if [ $EUID -eq 0 ]
|
||||
then
|
||||
echo -n '\[\e[02m\]#\[\e[0m\]'
|
||||
else
|
||||
echo -n '\[\e[02m\]$\[\e[0m\]'
|
||||
fi
|
||||
)> \""
|
||||
|
||||
# SHELL OPTIONS
|
||||
# =============
|
||||
|
|
Loading…
Reference in New Issue