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:
parent
917de20c6f
commit
70e4aa40e6
1 changed files with 14 additions and 12 deletions
|
@ -174,19 +174,21 @@ function __prompt_command() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# dir count, pwd
|
# dir count, pwd
|
||||||
if [ -z "${STATIC_PS1}" ]; then
|
PS1+=" "
|
||||||
PS1+=" "
|
if color ; then
|
||||||
if color ; then
|
PS1+="${BBlu}"
|
||||||
PS1+="${BBlu}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
PS1+="\[$(ls |wc -l)\]@\W"
|
|
||||||
|
|
||||||
if color ; then
|
|
||||||
PS1+="${RCol}"
|
|
||||||
fi
|
|
||||||
PS1+=" "
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "${STATIC_PS1}" ]; then
|
||||||
|
PS1+="\[$(ls |wc -l)\]@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
PS1+="\W"
|
||||||
|
|
||||||
|
if color ; then
|
||||||
|
PS1+="${RCol}"
|
||||||
|
fi
|
||||||
|
PS1+=" "
|
||||||
## Short prompt
|
## Short prompt
|
||||||
if [ -n "${SHORTPS1}" ]; then
|
if [ -n "${SHORTPS1}" ]; then
|
||||||
PS1+="\r\n"
|
PS1+="\r\n"
|
||||||
|
|
Loading…
Reference in a new issue