1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2026-04-19 13:24:06 +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

@@ -50,11 +50,11 @@ function prompt_paradox_build_prompt {
prompt_paradox_start_segment blue black '$_prompt_paradox_pwd'
if [[ -n "$git_info" ]]; then
prompt_paradox_start_segment green black '${(e)git_info[ref]}${(e)git_info[status]}'
prompt_paradox_start_segment green black '$(escape-eval "${(e)git_info[ref]}${(e)git_info[status]}")'
fi
if [[ -n "$python_info" ]]; then
prompt_paradox_start_segment white black '${(e)python_info[virtualenv]}'
prompt_paradox_start_segment white black '$(escape-eval "${(e)python_info[virtualenv]}")'
fi
prompt_paradox_end_segment