Skip to content
Add simple git status to your tmux statusline.
Branch: master
Clone or download
Latest commit e1bfb35 Nov 18, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts Fixes #1 pane selection if using multible panes so that a pane switch… Nov 18, 2019
LICENSE Initial commit May 8, 2018 Update screenshot. Sep 14, 2018

Tmux simple git status

Prints current pane git branch and uncommitted changes (if available).



Installation with Tmux Plugin Manager (recommended)

Add plugin to the list of TPM plugins in .tmux.conf:

set -g @plugin 'kristijanhusak/tmux-simple-git-status'

Add #{simple_git_status} to your status-left or status-right tmux option:

set -g status-left "#{simple_git_status}"

Hit prefix + I to fetch the plugin and source it.

Manual Installation

Clone the repo:

$ git clone ~/clone/path

Add this line to the bottom of .tmux.conf:

run-shell ~/clone/path/simple_git_status.tmux

Add #{simple_git_status} to your status-left or status-right tmux option:

set -g status-left "#{simple_git_status}"

Reload TMUX environment:

$ tmux source-file ~/.tmux.conf


Q: Status is not updating in real time.

A: Frequency of update depends on tmux status-interval option. To refresh the status every 5 seconds, add set -g status-interval 5 to your .tmux.conf

Q: There is a space before and after the status.

A: Those are added in order to allow easier styling and highlighting (like on screenshot). If you would add an empty space by yourself, you would get empty blocks in your statusline that doesn't hold anything. If you really want it to be removed, please file an issue.

You can’t perform that action at this time.