mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-11-12 22:53:31 +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
|
||||
|
||||
# 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"
|
||||
|
|
Loading…
Reference in a new issue