diff options
author | Conrad Haupt <conradjhaupt@gmail.com> | 2018-03-12 15:28:17 +0300 |
---|---|---|
committer | Conrad Haupt <conradjhaupt@gmail.com> | 2018-03-12 15:28:17 +0300 |
commit | a761e3c28a78cfbf7d7ca9cde5bdcd1126c2996c (patch) | |
tree | 6adfd8f9225aa8ee51a915af8b61bbab82c9a16a /powerlevel9k.zsh-theme | |
parent | afb7387abec505fb6565d31481c5f5ed724c2f08 (diff) |
Fixed home abbreviation not being exclusive with circular navigation
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 14d7bd81..12d05db3 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -809,7 +809,9 @@ prompt_dir() { current_path="${cur_short_path: : -1}" ;; *) - current_path="$(print -P "%$((POWERLEVEL9K_SHORTEN_DIR_LENGTH+1))(c:$POWERLEVEL9K_SHORTEN_DELIMITER/:)%${POWERLEVEL9K_SHORTEN_DIR_LENGTH}c")" + if [[ $current_path != "~" ]]; then + current_path="$(print -P "%$((POWERLEVEL9K_SHORTEN_DIR_LENGTH+1))(c:$POWERLEVEL9K_SHORTEN_DELIMITER/:)%${POWERLEVEL9K_SHORTEN_DIR_LENGTH}c")" + fi ;; esac fi |