3445dada95f7d5c4730b73ebb8b3abb0e5723e26

Author
Philip Hofstetter <phofstetter@sensational.ch>
Committer
Philip Hofstetter <phofstetter@sensational.ch>
Date

Message

correctly handle path names with spaces

Diff

 1diff --git a/themes/pygmalion.zsh-theme b/themes/pygmalion.zsh-theme
 2index 435c0583062f1b834b5d403f4c33e6edb90166fa..654e0fc37666e21df2bcae24d8fe04417cd7d857 100644
 3--- a/themes/pygmalion.zsh-theme
 4+++ b/themes/pygmalion.zsh-theme
 5@@ -18,7 +18,7 @@ prompt_setup_pygmalion(){
 6 prompt_pygmalion_precmd(){
 7   local gitinfo=$(git_prompt_info)
 8   local gitinfo_nocolor=$(echo "$gitinfo" | perl -pe "s/%\{[^}]+\}//g")
 9-  local exp_nocolor=$(print -P "$base_prompt_nocolor$gitinfo_nocolor$post_prompt_nocolor")
10+  local exp_nocolor="$(print -P \"$base_prompt_nocolor$gitinfo_nocolor$post_prompt_nocolor\")"
11   local prompt_length=${#exp_nocolor}
12 
13   local nl=""