diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2018-01-21 16:37:49 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2018-01-21 16:37:49 +0100 |
| commit | be81b230cce4e13de5d5c5ccec7fccee081f5057 (patch) | |
| tree | 99bbdc9a0d245babb4d6b0dee6a6323b30ad4b89 | |
| parent | f47500d0d2100170d580ebb7d1804b9eedce452c (diff) | |
| download | dotfiles-be81b230cce4e13de5d5c5ccec7fccee081f5057.tar.xz | |
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.
| -rw-r--r-- | .bash_prompt | 17 |
1 files changed, 10 insertions, 7 deletions
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 |
