added $/# to the prompt
parent
d503b20ae0
commit
8222f204ca
|
@ -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
|
||||||
# =============
|
# =============
|
||||||
|
|
Loading…
Reference in New Issue