From 27a2c0f60de7f87b48092357793500ad1b9c84b0 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Sun, 22 Oct 2023 13:01:05 +0300 Subject: 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. --- prompt_adam3_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prompt_adam3_setup') 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<..<%~%<<'} -- cgit v1.2.3