Age | Commit message (Collapse) | Author | Files | Lines |
|
- Dealing with the git: prefix will be done in a separate pull request
- The new --no-remote-status arg remains
|
|
|
|
|
|
In PS1 you need to escape non-printing characters, like the color codes.
The standard way is wrapping it in `\[` and `\]`. But for a dynamic
prompt, i.e. one that renders the results of a function every time the
prompt renders, that `\[` will be output as literals.
To fix this we bypass the conversion and wrap our non-printing
characters in the desired characters directly:
`\[` -> `\x01`
`\]` -> `\x02`
|
|
but only for PS1 string
|
|
and \]"
This reverts commit 0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.
|
|
|
|
|
|
In the zsh prompt we need to use '%s' on the printf to prevent the
`${fg_bold[<color>]}` expressions from expanding before the colors have
been loaded in.
In the bash prompt this is unnecessary as the \\033 codes are base
control characters, and so have no dependency they rely on.
|
|
|
|
The shebang in the top of a file dictates it's runtime. To load the zsh
colors stuff you need to be executing in Zsh but then I couldn't support
bash so I've split the prompt file into one for each.
|