Nick Johnstone's Blog

Sometimes I write things

Subscribe to my mailing list for updates

Auto Updating Git Status With Tmux and Watch

One of the great things about tmux is that you can create flexible development layouts.

You can easily display the output of a command and auto update it using watch. It has a similar end user experience as tail -f, except for commands instead of files. For example:

$ watch git status

watch will run git status every 2 seconds and display the output.

If you want color in your git status, you’ll need to configure git to display color when being run by watch.

$ git config --global color.status always $ watch --color git status

Comments