This plugin displays git branch above tmux status bar.
Installation with Tmux Plugin Manager (recommended)
Add plugin to the list of TPM plugins in .tmux.conf
:
set -g @plugin 'rabafea/tmux-git-branch'
Hit prefix + I
to fetch the plugin and source it. You should now be able to
use the plugin.
Clone the repo:
$ git clone https://github.com/rabafea/tmux-git-branch ~/clone/path
Add this line to the bottom of .tmux.conf
:
run-shell ~/clone/path/git-branch.tmux
Reload TMUX environment with: $ tmux source-file ~/.tmux.conf
. You should now
be able to use the plugin.