From be81b230cce4e13de5d5c5ccec7fccee081f5057 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sun, 21 Jan 2018 16:37:49 +0100 Subject: Set PS2 to "… " MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .bash_prompt | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to '.bash_prompt') diff --git a/.bash_prompt b/.bash_prompt index 1ee9ed8..bf7a7b1 100644 --- 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 -- cgit v1.2.3