mirror of
https://github.com/dcarrillo/prezto.git
synced 2026-04-19 11:04:05 +00:00
general: Escapes a string for safe use in parameter expansion
This commit is contained in:
committed by
Indrajit Raychaudhuri
parent
371aaa254a
commit
5464030f6a
@@ -71,7 +71,7 @@ function prompt_skwp_setup {
|
||||
zstyle ':prezto:module:ruby:info:version' format '[%v]'
|
||||
|
||||
# Define prompts.
|
||||
PROMPT="${_prompt_skwp_colors[3]}%n%f@${_prompt_skwp_colors[2]}%m%f ${_prompt_skwp_colors[5]}%~%f "'${git_info:+${(e)git_info[prompt]}}'"$ "
|
||||
PROMPT="${_prompt_skwp_colors[3]}%n%f@${_prompt_skwp_colors[2]}%m%f ${_prompt_skwp_colors[5]}%~%f "'${git_info:+$(escape-eval "${(e)git_info[prompt]}")}'"$ "
|
||||
RPROMPT='%F{blue}${ruby_info[version]}'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user