From 6e931f6047994ebb4a83924c298678d059e183d4 Mon Sep 17 00:00:00 2001
From: Torben Hartmann
Date: Mon, 27 Nov 2017 21:38:03 +0100
Subject: [PATCH] Fixed Issue with whitespaces in path.
---
powerlevel9k.zsh-theme | 3 +++
1 file changed, 3 insertions(+)
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 73178865d..5dd394eaa 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'
|