Last active
May 7, 2016 18:52
-
-
Save marcelor/138d14aeb5a5d6f0ec2eae9f8015255b to your computer and use it in GitHub Desktop.
Run "git status" when there is a change in the current folder.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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