1
0
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:
Trey Keown
2026-03-20 15:51:15 -05:00
committed by Indrajit Raychaudhuri
parent 371aaa254a
commit 5464030f6a
8 changed files with 23 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ function prompt_kylewest_setup {
zstyle ':prezto:module:ruby:info:version' format '%F{blue}[%v]%f'
# Define prompts.
PROMPT='%F{cyan}%c%f ${git_info:+${(e)git_info[prompt]}}${editor_info[keymap]} '
PROMPT='%F{cyan}%c%f ${git_info:+$(escape-eval ${(e)git_info[prompt]})}${editor_info[keymap]} '
RPROMPT='${ruby_info[version]}'
}