Skip to content

Instantly share code, notes, and snippets.

@anithri
Last active August 29, 2015 14:14
Show Gist options
  • Save anithri/78b021c704e00a575b87 to your computer and use it in GitHub Desktop.
Save anithri/78b021c704e00a575b87 to your computer and use it in GitHub Desktop.
git status for i3blocks or other text based status tools.

Intro

This is a pair of scripts to facilitate display a repo status in my i3bar. Also included is a fragment of my .i3blocks.conf file where I use the scripts.

Purpose

To help me correct bad git habits, I want to bring the git status for the repo I'm wqorking on currently front and center in my i3bar.

Caveats

Because I like ruby, I used ruby. it's probably faster in all sorts of other implementations and I urge you to develop them if you want. I my eventually attempt a python translation as an excuse to learn something about python. I don't understand shell string manipulation well enough to summarize things with it, again I'm sure it's possible I just don't know how to do it and it isn't important enough to me to learn right now.

License

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment