diff options
author | Brian Moran <bmoran@urbn.com> | 2017-10-27 19:11:48 +0300 |
---|---|---|
committer | Brian Moran <bmoran@urbn.com> | 2017-10-27 19:11:48 +0300 |
commit | 43e766209b0e6061bbf62c029098cd92a9408c1f (patch) | |
tree | 24fc140526b8044a5a809d01efd54aaf8f2ecc39 /powerlevel9k.zsh-theme | |
parent | 17c069d25ac7b24af6b5dc7ecb9597cef881f582 (diff) |
ISS-650 Fix PYTHONPATH appearing in prompt
- Modify prompt_dir function to set current_path based on pwd and
replace $HOME with ~
Diffstat (limited to 'powerlevel9k.zsh-theme')
-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 b03a9374..5ba9e43d 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -691,7 +691,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' |