arl / tmux-gitbar

Git in your tmux status bar
GNU General Public License v3.0
169 stars 16 forks source link

PROMPT_COMMAND added multiple times if tmux-gitbar.tmux is reloaded #21

Closed arl closed 8 years ago

arl commented 8 years ago

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