diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2019-03-02 01:31:21 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2019-03-02 01:31:21 +0300 |
commit | 3057e8fc07374e9c580790a023cb85998ca91fc8 (patch) | |
tree | 4748e7fb859f3ba7343460d4fff170dafbbdffcc /powerlevel9k.zsh-theme | |
parent | 613b798bb352086b62c00e2494fc0bbefad8e8b4 (diff) |
Backport @wrboyce fix for truncating dir with package name from #1158
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 427e9b00..4939cb35 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -905,6 +905,8 @@ prompt_dir() { package_path=${$(pwd)%%/.git*} fi + [[ ${(L)POWERLEVEL9K_DIR_PATH_ABSOLUTE} != "true" ]] && package_path=${package_path/$HOME/"~"} + # Replace the shortest possible match of the marked folder from # the current path. Remove the amount of characters up to the # folder marker from the left. Count only the visible characters |