Skip to content

Instantly share code, notes, and snippets.

@marcelor
Last active May 7, 2016 18:52
Show Gist options
  • Save marcelor/138d14aeb5a5d6f0ec2eae9f8015255b to your computer and use it in GitHub Desktop.
Save marcelor/138d14aeb5a5d6f0ec2eae9f8015255b to your computer and use it in GitHub Desktop.
Run "git status" when there is a change in the current folder.
1. $ brew install fswatch
2. Create script gitstatus.sh:
#!/bin/bash
clear
fswatch -e ".lock" -r . | xargs -I {} sh -c 'clear; git status -s'
3. Run gitstatus.sh inside your repo's root folder.
4. Profit!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment