mirror of
https://github.com/dcarrillo/prezto.git
synced 2026-04-19 02: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
@@ -117,7 +117,7 @@ function prompt_cloud_setup {
|
||||
'rprompt' ''
|
||||
|
||||
# Define prompts.
|
||||
PROMPT='%B%F{$primary_color}${prefix}%f%b %B%F{$secondary_color}%c%f%b ${git_info:+${(e)git_info[prompt]}} '
|
||||
PROMPT='%B%F{$primary_color}${prefix}%f%b %B%F{$secondary_color}%c%f%b ${git_info:+$(escape-eval ${(e)git_info[prompt]})} '
|
||||
RPROMPT=''
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user