dotfiles/bin/scripts/nt
2021-01-14 10:27:40 +03:00

11 lines
309 B
Bash
Executable file

#!/bin/sh
command="$@"
if [ ! -z "$command" ]; then
start_time="$(date -u +%s)"
$command
end_time="$(date -u +%s)"
elapsed="$(($end_time-$start_time))"
notify-send "Terminal" "Command\n$command\nexecuted in $elapsed seconds"
else
notify-send "Terminal" "Command execution complete"
fi