Skip to content

Commit

Permalink
Fixed Issue with whitespaces in path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corwynt committed Nov 27, 2017
1 parent 87acc51 commit 6e931f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions powerlevel9k.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 6e931f6

Please sign in to comment.