From 64c600f71ee6c22b88e5ba6ff9f2170e9751548a Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 30 Sep 2025 20:01:04 +0100 Subject: [PATCH] update PS1 prompt formatting for clarity Adjusted the PS1 prompt to improve readability by adding spacing and clarifying the structure of the displayed information. --- bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 120c462..2a5adfd 100644 --- a/bashrc +++ b/bashrc @@ -105,8 +105,8 @@ export HISTCONTROL=ignoreboth:erasedups # Load custom gitstatus configuration [ -f "$HOME/.config/bash/gitstatus-custom.sh" ] && . "$HOME/.config/bash/gitstatus-custom.sh" -# Set PS1 with time, user@host, directory, git status, and command line -PS1='\t \[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\]${GITSTATUS_PROMPT:+ $GITSTATUS_PROMPT}\n\[\033[01;$((31+!$?))m\]\$\[\033[00m\] \[\e]0;\u@\h: \w\a\]' +# Set PS1 with time, user@host, directory on first line, git status on second line, prompt on third line +PS1='\t \[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\]\n${GITSTATUS_PROMPT:+ $GITSTATUS_PROMPT\n}\[\033[01;$((31+!$?))m\]\$\[\033[00m\] \[\e]0;\u@\h: \w\a\]' # If there are multiple matches for completion, Tab should cycle through them bind TAB:menu-complete