fix(escaping): move escaping to individual variables (#3107)

This commit is contained in:
Fred Cox
2021-11-01 14:18:45 -07:00
committed by GitHub
parent 73277d37c6
commit c1f2d345aa
68 changed files with 259 additions and 175 deletions
+13
View File
@@ -3319,6 +3319,19 @@ If you have an interesting example not covered there, feel free to share it ther
:::
::: warning Command output is printed unescaped to the prompt
Whatever output the command generates is printed unmodified in the prompt. This means if the output
contains special sequences that are interpreted by your shell they will be expanded when displayed.
These special sequences are shell specific, e.g. you can write a command module that writes bash sequences,
e.g. `\h`, but this module will not work in a fish or zsh shell.
Format strings can also contain shell specific prompt sequences, e.g.
[Bash](https://www.gnu.org/software/bash/manual/html_node/Controlling-the-Prompt.html),
[Zsh](https://zsh.sourceforge.io/Doc/Release/Prompt-Expansion.html).
:::
### Options
| Option | Default | Description |