diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-11-02 21:37:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-02 21:37:24 +0300 |
commit | 948e7f5bff288dd0b91b1d37d13b2e9bb1592f00 (patch) | |
tree | 5faf4e6ad06165be3f5180508132f11d24e35e10 | |
parent | ba7d11667789ceae97ccbbf5829be7d41055f604 (diff) | |
parent | 43e766209b0e6061bbf62c029098cd92a9408c1f (diff) |
Merge pull request #660 from brianmoran/ISS-650-pythonpath-in-prompt
ISS-650 Fix PYTHONPATH appearing in prompt
-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 3c173e9f..f33d5a9a 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -695,7 +695,7 @@ set_default POWERLEVEL9K_DIR_PATH_SEPARATOR "/" set_default POWERLEVEL9K_HOME_FOLDER_ABBREVIATION "~" set_default POWERLEVEL9K_DIR_SHOW_WRITABLE false prompt_dir() { - local current_path="$(print -P "%~")" + local current_path=$(pwd | sed -e "s,^$HOME,~,") if [[ -n "$POWERLEVEL9K_SHORTEN_DIR_LENGTH" || "$POWERLEVEL9K_SHORTEN_STRATEGY" == "truncate_with_folder_marker" ]]; then set_default POWERLEVEL9K_SHORTEN_DELIMITER $'\U2026' |