1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-21 16:53:33 +01:00

[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

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"