mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
correctly handle path names with spaces
This commit is contained in:
parent
77045230f4
commit
3445dada95
1 changed files with 1 additions and 1 deletions
|
@ -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=""
|
||||||
|
|
Loading…
Reference in a new issue