Prints git information for the current pane (if $cwd is a git repo)
↑ Ahead
↓ Behind
● Staged
+ Index Added
- Index Deleted
✖ Conflicts
+ Unstaged
- Tree deleted
… Untracked
⚑ Stashes
! Local branches
? Unknown
Tmux Plugin Manager (recommended)
Add plugin to the list of TPM plugins in .tmux.conf
:
set -g @plugin 'jrudess/tmux-fancy-git'
Add #{fancy_git}
to your status-left
or status-right
tmux option:
set -g status-left "#{fancy_git}"
Press prefix + I
to fetch the plugin and source it.