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:
parent
a2b0771c28
commit
f730f0f604
2 changed files with 17 additions and 3 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue