add prompt divider and update command for gitstatus

Introduced a function to draw a terminal-width divider with a timestamp
and updated the PROMPT_COMMAND to include this new function for better
visual separation in the terminal prompt.
This commit is contained in:
Ray Elliott 2025-09-30 20:44:24 +01:00
commit f730f0f604
2 changed files with 17 additions and 3 deletions

View file

@ -60,5 +60,5 @@ function my_gitstatus_prompt_update() {
# Start gitstatusd and set up prompt command
gitstatus_stop && gitstatus_start -s -1 -u -1 -c -1 -d -1
PROMPT_COMMAND=my_gitstatus_prompt_update
PROMPT_COMMAND="draw_prompt_divider; my_gitstatus_prompt_update"
shopt -s promptvars