summaryrefslogtreecommitdiffstats
path: root/prompt.bash (follow)
AgeCommit message (Collapse)AuthorFilesLines
2015-08-26Remove unnecessary colour on branch namesMichael Allen1-2/+0
2015-08-26Bypass PS1s conversion of \[Michael Allen1-4/+4
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`
2015-08-26bash prompt length fix: zero-length chars must be placed between \[ and \], ↵Grigory Petrov1-4/+4
but only for PS1 string
2015-08-26Revert "bash prompt length fix: zero-length chars must be placed between \[ ↵Grigory Petrov1-4/+4
and \]" This reverts commit 0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.
2015-08-26bash prompt length fix: zero-length chars must be placed between \[ and \]Grigory Petrov1-4/+4
2015-08-19Rename to git-radarMichael Allen1-1/+1
2015-08-19Remove unnecessary subshells from bash promptMichael Allen1-3/+8
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.
2015-08-18Switch to the more common -E grep regex flagMichael Allen1-10/+2
2015-08-14Split prompt command into bash and zshMichael Allen1-0/+18
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.