If tmux source-file is called when already inside tmux, the $PROMPT_COMMAND is modified another time. This leads to have multiple calls to update-gitbar in the $PROMPT_COMMAND.
The solution could be to check if $TMUX environment variable is set before modifiying $PROMPT_COMMAND
If
tmux source-file
is called when already inside tmux, the$PROMPT_COMMAND
is modified another time. This leads to have multiple calls toupdate-gitbar
in the$PROMPT_COMMAND
.The solution could be to check if
$TMUX
environment variable is set before modifiying$PROMPT_COMMAND