diff options
author | Philip Hofstetter <phofstetter@sensational.ch> | 2011-12-29 14:35:38 +0100 |
---|---|---|
committer | Philip Hofstetter <phofstetter@sensational.ch> | 2011-12-29 14:35:38 +0100 |
commit | 3445dada95f7d5c4730b73ebb8b3abb0e5723e26 (patch) | |
tree | 654a50f3147aa3b75d66717f224fdcfa5b71cdfa /themes/pygmalion.zsh-theme | |
parent | 77045230f4e2c80f4f312fbbeeb8583a41aa5a92 (diff) | |
download | zsh-3445dada95f7d5c4730b73ebb8b3abb0e5723e26.tar.gz zsh-3445dada95f7d5c4730b73ebb8b3abb0e5723e26.tar.bz2 zsh-3445dada95f7d5c4730b73ebb8b3abb0e5723e26.zip |
correctly handle path names with spaces
Diffstat (limited to 'themes/pygmalion.zsh-theme')
-rw-r--r-- | themes/pygmalion.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/pygmalion.zsh-theme b/themes/pygmalion.zsh-theme index 435c05830..654e0fc37 100644 --- a/themes/pygmalion.zsh-theme +++ b/themes/pygmalion.zsh-theme @@ -18,7 +18,7 @@ prompt_setup_pygmalion(){ prompt_pygmalion_precmd(){ local gitinfo=$(git_prompt_info) local gitinfo_nocolor=$(echo "$gitinfo" | perl -pe "s/%\{[^}]+\}//g") - local exp_nocolor=$(print -P "$base_prompt_nocolor$gitinfo_nocolor$post_prompt_nocolor") + local exp_nocolor="$(print -P \"$base_prompt_nocolor$gitinfo_nocolor$post_prompt_nocolor\")" local prompt_length=${#exp_nocolor} local nl="" |