Skip to content

Instantly share code, notes, and snippets.

@Ikke
Created June 7, 2025 15:13
Show Gist options
  • Save Ikke/d7d3833d4a69d09d2014c511de4ebb67 to your computer and use it in GitHub Desktop.
Save Ikke/d7d3833d4a69d09d2014c511de4ebb67 to your computer and use it in GitHub Desktop.
#!/bin/bash
while true;
do
ST=$(git --no-optional-locks -c color.ui=always status -sb -uall);
tput reset;
echo -e "$ST"
inotifywait \
-e modify \
-e moved_to \
-e moved_from \
-e move \
-e move_self \
-e create \
-e delete \
-e delete_self \
-qqr . .git/index
sleep 0.2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment