git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <coding _ lirion.de> 2024-05-25 12:52:52 +0200
committerHarald Pfeiffer <coding _ lirion.de> 2024-05-25 12:52:52 +0200
commit1d5f4b8d45978071316e322fd186c0522daba0de (patch)
tree4bd92167ed1d8a116a0dcf0e821d5deeb4ee7d32
parentffb6d1b728a0c993792488c606dc1a5206eaec52 (diff)
downloaddotfiles-1d5f4b8d45978071316e322fd186c0522daba0de.tar.bz2
NEW FEATURE: prompt may be quite long, we now start input on a completely new line
-rw-r--r--.bash/prompt.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/.bash/prompt.bash b/.bash/prompt.bash
index b9f4703..6914d63 100644
--- a/.bash/prompt.bash
+++ b/.bash/prompt.bash
@@ -139,10 +139,10 @@ __prompt_command() {
fi
case "$MYUID" in
0)
- PS1="\\# \[$(tput bold)\]\[$($FGC1)\]\\u\[$($FGC2)\]@$PHN \[$($FGC3)\]\\w \[$(tput sgr0)\]"
+ PS1="\\# \[$(tput bold)\]\[$($FGC1)\]\\u\[$($FGC2)\]@$PHN \[$($FGC3)\]\\w \[$(tput sgr0)\]\\n"
;;
*)
- PS1="\\# \[$(tput bold)\]\[$($FGC1)\]\t \[$($FGC2)\]\\u$UHSEP\[$($FGC3)\]$PHN \\w \[$(tput sgr0)\]"
+ PS1="\\# \[$(tput bold)\]\[$($FGC1)\]\t \[$($FGC2)\]\\u$UHSEP\[$($FGC3)\]$PHN \\w \[$(tput sgr0)\]\\n"
;;
esac
if command -v __git_ps1 >/dev/null 2>&1;then PS1+="$(__git_ps1 "%s ")";fi