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