Timealert

timealert

Run a command and print a completion notification to stderr showing the elapsed wall-clock time. Exit code of the command is preserved. Useful for wrapping long-running commands in interactive shells.

Example

timealert sleep 5
# => [done] sleep 5  (5s)

Arguments

  • ... (Command): and its arguments

Exit codes

  • Passthrough — the exit code of the wrapped command