From c93727503eb3ab35fee3fb3409ee09555ee4842f Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 30 Sep 2025 21:13:27 +0100 Subject: [PATCH] update prompt display for git status alignment Changed the PS1 prompt to include a visual divider for better clarity in git status representation. --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 2258a00..e2bebb3 100644 --- a/bashrc +++ b/bashrc @@ -168,7 +168,7 @@ function calculate_git_alignment() { PROMPT_COMMAND="draw_prompt_divider; my_gitstatus_prompt_update; calculate_git_alignment" # Set PS1 with user@host, directory on first line, dynamically aligned git status, prompt on third line -PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[1;34m\]\w\[\033[00m\]\n${GITSTATUS_PROMPT:+$GIT_ALIGNMENT_PADDING$GITSTATUS_PROMPT\n}\[\033[01;$((31+!$?))m\]\$\[\033[00m\] \[\e]0;\u@\h: \w\a\]' +PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[1;34m\]\w\[\033[00m\]\n${GITSTATUS_PROMPT:+$GIT_ALIGNMENT_PADDING$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