summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-03-17 10:07:29 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-03-17 10:07:29 +0300
commit472f2415988fea221bf59768bcc4021142da6d66 (patch)
tree885e992f750ded550163fddfabdab785c2781892 /powerlevel9k.zsh-theme
parent031219bc988c6626b673ba7b232e04a1999749f5 (diff)
fix regression in truncate_with_package_name; fixes #29
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 013be848..b8494994 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -904,11 +904,11 @@ prompt_dir() {
# Remove trailing slash from git path, so that we can
# remove that git path from the pwd.
gitPath=${gitPath%/}
- package_path=${$PWD%%$gitPath}
+ package_path=${PWD%%$gitPath}
# Remove trailing slash
package_path=${package_path%/}
elif [[ $(git rev-parse --is-inside-git-dir 2> /dev/null) == "true" ]]; then
- package_path=${$PWD%%/.git*}
+ package_path=${PWD%%/.git*}
fi
[[ ${(L)POWERLEVEL9K_DIR_PATH_ABSOLUTE} != "true" ]] && package_path=${package_path/$HOME/"~"}