Skip to content

kristijanhusak/tmux-simple-git-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tmux simple git status

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

screenshot

Installation

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 https://github.com/kristijanhusak/tmux-simple-git-status ~/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

FAQ

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.

About

Add simple git status to your tmux statusline.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages