aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBrian Moran <bmoran@urbn.com>2017-10-27 19:11:48 +0300
committerBrian Moran <bmoran@urbn.com>2017-10-27 19:11:48 +0300
commit43e766209b0e6061bbf62c029098cd92a9408c1f (patch)
tree24fc140526b8044a5a809d01efd54aaf8f2ecc39 /powerlevel9k.zsh-theme
parent17c069d25ac7b24af6b5dc7ecb9597cef881f582 (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-xpowerlevel9k.zsh-theme2
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'