diff options
author | Dennis Eriksen <d@ennis.no> | 2023-10-22 13:01:05 +0300 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2023-10-22 13:01:05 +0300 |
commit | 27a2c0f60de7f87b48092357793500ad1b9c84b0 (patch) | |
tree | 076861eccbd9be7468b82e6dbc3ebe4fed0f837b /prompt_adam3_setup | |
parent | Fix showing virtualenv (diff) | |
download | adam3-27a2c0f60de7f87b48092357793500ad1b9c84b0.tar.gz |
fix bug where dir was shown wrongly
in some edgecases working dir was shown weirdly. if working dir is less
than five elements, just print all of it. restricting it to four
elements has no effect, since when it reaches five elements it will be
truncated.
Diffstat (limited to '')
-rw-r--r-- | prompt_adam3_setup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prompt_adam3_setup b/prompt_adam3_setup index 5e7c19a..6667d40 100644 --- a/prompt_adam3_setup +++ b/prompt_adam3_setup @@ -79,7 +79,7 @@ prompt_adam3_setup () { prom[host]=${PROMPT_ADAM3_PHOST:-'%m'} # DIR in single-line-mode - prom[dirS]=${PROMPT_ADAM3_PdirS:-'%-40<..<%(5~|%-1~/../%3~|%4~)%<< '} + prom[dirS]=${PROMPT_ADAM3_PdirS:-'%-40<..<%(5~|%-1~/../%3~|%~)%<< '} # DIR in double-line-mode prom[dirD]=${PROMPT_ADAM3_PdirD:-'%-10<..<%~%<<'} |