summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2017-11-02 21:37:24 +0300
committerGitHub <noreply@github.com>2017-11-02 21:37:24 +0300
commit948e7f5bff288dd0b91b1d37d13b2e9bb1592f00 (patch)
tree5faf4e6ad06165be3f5180508132f11d24e35e10 /powerlevel9k.zsh-theme
parentba7d11667789ceae97ccbbf5829be7d41055f604 (diff)
parent43e766209b0e6061bbf62c029098cd92a9408c1f (diff)
Merge pull request #660 from brianmoran/ISS-650-pythonpath-in-prompt
ISS-650 Fix PYTHONPATH appearing in prompt
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 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'