Fish loop to warn you when command stops or starts failing
Just came up with this:
while test not (git push); echo done; sleep 1; end; zenity --info works
-
test reacts when command returns a non-zero exit value
-
you can remove
not -
the above shows a popup when it’s over
-
EDIT: failed, when
git pushstopped returning 128, the loop continued :)
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus