commit 506a4a058d9cc182ad45e34e5892aeda3c0baeaf
parent c57ac089c97db65e6e795bf45c266b645025e654
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date: Thu, 2 Mar 2017 19:39:10 +0100
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.
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git 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