diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-12-14 23:15:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-14 23:15:09 +0300 |
commit | c50eb9cdda0992d7f717fe5ffaea8812ea5146f9 (patch) | |
tree | dc08c2898302a2e146cb185acee1c1476b4cf715 /powerlevel9k.zsh-theme | |
parent | bf9d8a5ddbcc3379648650d83d5d56216f2e5581 (diff) | |
parent | 02fbaf2c4befcc9a291f391a1a045d1a055332c0 (diff) |
Merge pull request #686 from Corwynt/master
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 33f8a50b..97e99f43 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' |