summaryrefslogtreecommitdiffstats
path: root/radar-base.sh (follow)
AgeCommit message (Collapse)AuthorFilesLines
2015-08-26Merge pull request #11 from michaeldfallen/fix-bash-zero-length0.2Michael Allen1-12/+12
Bypass PS1s conversion of \[
2015-08-26Merge pull request #8 from justinas/masterMichael Allen1-1/+1
Suppress the 'Fatal: not a git repository' errors
2015-08-26Bypass PS1s conversion of \[Michael Allen1-12/+12
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-26Suppress the 'Fatal: not a git repository' errorsJustinas Stankevicius1-1/+1
2015-08-26bash prompt length fix: zero-length chars must be placed between \[ and \], ↵Grigory Petrov1-12/+12
but only for PS1 string
2015-08-26Revert "bash prompt length fix: zero-length chars must be placed between \[ ↵Grigory Petrov1-12/+12
and \]" This reverts commit 0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.
2015-08-26bash prompt length fix: zero-length chars must be placed between \[ and \]Grigory Petrov1-12/+12
2015-08-19Ensure the control characters get evaluatedMichael Allen1-1/+1
2015-08-19Rename to git-radarMichael Allen1-0/+471