Skip to content

Commit

Permalink
fix regression in truncate_with_package_name; fixes Powerlevel9k#29
Browse files Browse the repository at this point in the history
  • Loading branch information
romkatv committed Mar 17, 2019
1 parent 031219b commit 472f241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions powerlevel9k.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -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/"~"}
Expand Down

0 comments on commit 472f241

Please sign in to comment.