From 5fb888cda95b34f279c61037e8c989949d5f39ff Mon Sep 17 00:00:00 2001 From: romkatv Date: Sun, 19 May 2019 11:57:48 +0200 Subject: [PATCH] do not shorten the last dir in truncate_to_unique --- powerlevel9k.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 6c852828..a24ddeb5 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -897,7 +897,7 @@ prompt_dir() { truncate_to_unique) local parent="${PWD%/${(pj./.)parts[2,-1]}}" dir local -i i=2 - for (( ; i <= $#parts; ++i )); do + for (( ; i < $#parts; ++i )); do local dir=$parts[i] local -i j=1 for (( ; j <= $#dir; ++j )); do