diff options
| author | KΓ©vin Le Gouguec <kevin.legouguec@gmail.com> | 2017-03-02 19:39:10 +0100 |
|---|---|---|
| committer | KΓ©vin Le Gouguec <kevin.legouguec@gmail.com> | 2017-03-02 19:39:10 +0100 |
| commit | 506a4a058d9cc182ad45e34e5892aeda3c0baeaf (patch) | |
| tree | d3aaa1d0be008da56c213a0186fb9b92a0d3d78d | |
| parent | c57ac089c97db65e6e795bf45c266b645025e654 (diff) | |
| download | dotfiles-506a4a058d9cc182ad45e34e5892aeda3c0baeaf.tar.xz | |
Change no-newline and rule characters
I've seen the prohibited sign elsewhere before (on Github IIRC),
I find it neat.
Using the box drawing rather than the long dash ensures the line looks
continuous even in TTYs.
| -rw-r--r-- | .bash_prompt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.bash_prompt b/.bash_prompt index 7a55f35..59cf090 100644 --- a/.bash_prompt +++ b/.bash_prompt @@ -142,8 +142,7 @@ __current-column () __signal-no-newline () { - local signal="/\n" - __fontify ${signal} bold red + echo $(__fontify π bold red) } __draw-rule () @@ -152,7 +151,7 @@ __draw-rule () for ((i=$(__current-column); i<COLUMNS; i++)) do - line+=β + line+=β done # If we do not add a newline, whatever comes after will be shoved |
