mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 11:43:03 +03:00
11 lines
309 B
Bash
Executable file
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
|