add git alignment calculation for prompt display

Enhance the prompt by calculating alignment based on the
hostname and branch lengths, ensuring better visibility
of git status in the terminal.
This commit is contained in:
Ray Elliott 2025-09-30 21:01:00 +01:00
commit 05afd18b1a
2 changed files with 39 additions and 3 deletions

View file

@ -60,5 +60,4 @@ 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="draw_prompt_divider; my_gitstatus_prompt_update"
shopt -s promptvars