aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/prompt_adam3_setup
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2023-10-22 13:01:05 +0300
committerDennis Eriksen <d@ennis.no>2023-10-22 13:01:05 +0300
commit27a2c0f60de7f87b48092357793500ad1b9c84b0 (patch)
tree076861eccbd9be7468b82e6dbc3ebe4fed0f837b /prompt_adam3_setup
parentFix showing virtualenv (diff)
downloadadam3-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_setup2
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<..<%~%<<'}