kamilsk / dotfiles

🗂 My dotfiles for productive work.
MIT License
4 stars 0 forks source link

command: notify if a run is longer than X sec #630

Open kamilsk opened 1 year ago

kamilsk commented 1 year ago

Motivation: better DX when I run long execution scripts.

PoC

$ notify -5s go run main.go
# if go run main.go execution time >5s then exec
# osascript -e 'display notification "The command `go run main.go` is complete! Exec time... Status code..." with title "Script execution"'
kamilsk commented 1 year ago

Apply it to self-update command.