diff options
author | Torben Hartmann <th@stadesign.de> | 2017-11-27 23:38:03 +0300 |
---|---|---|
committer | Torben Hartmann <th@stadesign.de> | 2017-11-27 23:38:03 +0300 |
commit | 6e931f6047994ebb4a83924c298678d059e183d4 (patch) | |
tree | 2753c79c5575f7f3f9354832cad9640366d6aac9 /powerlevel9k.zsh-theme | |
parent | 87acc51acab3ed4fd33cda2386abed6f98c80720 (diff) |
Fixed Issue with whitespaces in path.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 73178865..5dd394ea 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -695,7 +695,10 @@ set_default POWERLEVEL9K_DIR_PATH_SEPARATOR "/" set_default POWERLEVEL9K_HOME_FOLDER_ABBREVIATION "~" set_default POWERLEVEL9K_DIR_SHOW_WRITABLE false prompt_dir() { + local tmp=$IFS + local IFS="" local current_path=$(pwd | sed -e "s,^$HOME,~,") + local IFS=$tmp if [[ -n "$POWERLEVEL9K_SHORTEN_DIR_LENGTH" || "$POWERLEVEL9K_SHORTEN_STRATEGY" == "truncate_with_folder_marker" ]]; then set_default POWERLEVEL9K_SHORTEN_DELIMITER $'\U2026' |