Skip to content

Instantly share code, notes, and snippets.

@stevegt
Created May 29, 2024 01:42
Show Gist options
  • Save stevegt/9e3cc5ae24628568513d8e6f3927927d to your computer and use it in GitHub Desktop.
Save stevegt/9e3cc5ae24628568513d8e6f3927927d to your computer and use it in GitHub Desktop.
a much simpler script for an automatic go vet loop
#!/bin/bash
winid=$(getwinid)
while true
do
inotifywait -r -e modify *
sleep 1
go vet || continue
wmctrl -ia $winid
export GOT_WINDOW=$winid
got
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment