commit be81b230cce4e13de5d5c5ccec7fccee081f5057
parent f47500d0d2100170d580ebb7d1804b9eedce452c
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date: Sun, 21 Jan 2018 16:37:49 +0100
Set PS2 to "β¦ "
Because I'm a Unicode hipster.
Also move the "dumb" check below function definitions, so that maybe
someday I can try to play with those functions in shell-mode.
Diffstat:
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/.bash_prompt b/.bash_prompt
@@ -6,13 +6,6 @@
# anything else: Never show hostname
-if [ "${TERM}" = dumb ]
-then
- PS1='$? \u:\w\$ '
- return
-fi
-
-
__show-hostname ()
{
case ${PS1_SHOWHOSTNAME} in
@@ -203,6 +196,16 @@ __refresh-terminal ()
}
+PS2='β¦ '
+
+if [ "${TERM}" = dumb ]
+then
+ PS1='$? \u:\w\$ '
+ return
+fi
+
+PS2=$(__fontify "${PS2}" dim)
+
if __have-gitprompt
then
. /usr/lib/git-core/git-sh-prompt