summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Hofstetter <phofstetter@sensational.ch>2011-12-29 14:35:38 +0100
committerPhilip Hofstetter <phofstetter@sensational.ch>2011-12-29 14:35:38 +0100
commit3445dada95f7d5c4730b73ebb8b3abb0e5723e26 (patch)
tree654a50f3147aa3b75d66717f224fdcfa5b71cdfa
parent77045230f4e2c80f4f312fbbeeb8583a41aa5a92 (diff)
downloadzsh-3445dada95f7d5c4730b73ebb8b3abb0e5723e26.tar.gz
zsh-3445dada95f7d5c4730b73ebb8b3abb0e5723e26.tar.bz2
zsh-3445dada95f7d5c4730b73ebb8b3abb0e5723e26.zip
correctly handle path names with spaces
-rw-r--r--themes/pygmalion.zsh-theme2
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=""