Skip to content

Instantly share code, notes, and snippets.

@Ikke
Created September 29, 2015 19:56
Show Gist options
  • Save Ikke/64858046d15426aad19f to your computer and use it in GitHub Desktop.
Save Ikke/64858046d15426aad19f to your computer and use it in GitHub Desktop.
Git status that automatically updates
#!/bin/bash
while true;
do
sleep 0.005
ST=$(git -c color.ui=always status -sb);
tput reset;
echo -e "$ST";
inotifywait -qqr .;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment