Commit 3445dada authored by Philip Hofstetter's avatar Philip Hofstetter
Browse files

correctly handle path names with spaces

parent 77045230
...@@ -18,7 +18,7 @@ prompt_setup_pygmalion(){ ...@@ -18,7 +18,7 @@ prompt_setup_pygmalion(){
prompt_pygmalion_precmd(){ prompt_pygmalion_precmd(){
local gitinfo=$(git_prompt_info) local gitinfo=$(git_prompt_info)
local gitinfo_nocolor=$(echo "$gitinfo" | perl -pe "s/%\{[^}]+\}//g") 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 prompt_length=${#exp_nocolor}
local nl="" local nl=""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment