added $/# to the prompt

master
BodgeMaster 2021-05-16 22:30:45 +02:00
parent d503b20ae0
commit 8222f204ca
1 changed files with 11 additions and 4 deletions

View File

@ -49,13 +49,13 @@ HISTFILESIZE=-1
PROMPT_COMMAND="PS1=\"[\[\e[03$( PROMPT_COMMAND="PS1=\"[\[\e[03$(
if [ $EUID -eq 0 ] if [ $EUID -eq 0 ]
then then
echo '1;02m' echo -n '1;02m'
else else
if [ -n "$(groups | grep 'wheel\|sudo')" ]; if [ -n "$(groups | grep 'wheel\|sudo')" ];
then then
echo '2;01m' echo -n '2;01m'
else else
echo '6;01m' echo -n '6;01m'
fi fi
fi fi
)\]\u@\h\[\e[0m\]]:\$( )\]\u@\h\[\e[0m\]]:\$(
@ -68,7 +68,14 @@ PROMPT_COMMAND="PS1=\"[\[\e[03$(
fi fi
echo -n \$PROMPT_ERRORLEVEL echo -n \$PROMPT_ERRORLEVEL
echo -n '\[\e[00m\]' 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 # SHELL OPTIONS
# ============= # =============