diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-05-19 12:57:48 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-05-19 12:57:48 +0300 |
commit | 5fb888cda95b34f279c61037e8c989949d5f39ff (patch) | |
tree | 969c8a4fbb0335dd336d5dac8ae5e2a55ba624a5 /powerlevel9k.zsh-theme | |
parent | fece2f1fb434ae884d2190902435d0307305332b (diff) |
do not shorten the last dir in truncate_to_unique
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
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 |