mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
fix(escaping): move escaping to individual variables (#3107)
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user