[bash] Do show working directory in STATICPS1

This commit is contained in:
Eric Teunis de Boone 2024-07-24 17:01:36 +02:00
parent 917de20c6f
commit 70e4aa40e6
1 changed files with 14 additions and 12 deletions

View File

@ -174,19 +174,21 @@ function __prompt_command() {
fi
# dir count, pwd
if [ -z "${STATIC_PS1}" ]; then
PS1+=" "
if color ; then
PS1+="${BBlu}"
fi
PS1+="\[$(ls |wc -l)\]@\W"
if color ; then
PS1+="${RCol}"
fi
PS1+=" "
PS1+=" "
if color ; then
PS1+="${BBlu}"
fi
if [ -z "${STATIC_PS1}" ]; then
PS1+="\[$(ls |wc -l)\]@"
fi
PS1+="\W"
if color ; then
PS1+="${RCol}"
fi
PS1+=" "
## Short prompt
if [ -n "${SHORTPS1}" ]; then
PS1+="\r\n"