aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2017-12-14 23:15:09 +0300
committerGitHub <noreply@github.com>2017-12-14 23:15:09 +0300
commitc50eb9cdda0992d7f717fe5ffaea8812ea5146f9 (patch)
treedc08c2898302a2e146cb185acee1c1476b4cf715
parentbf9d8a5ddbcc3379648650d83d5d56216f2e5581 (diff)
parent02fbaf2c4befcc9a291f391a1a045d1a055332c0 (diff)
Merge pull request #686 from Corwynt/master
Fixed Issue with whitespaces in path.
-rwxr-xr-xpowerlevel9k.zsh-theme3
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'