task.mk/docs/examples/functions.sh

16 lines
140 B
Bash
Raw Permalink Normal View History

2022-09-18 10:00:53 -05:00
#!/usr/bin/env bash
msg() {
2022-09-24 17:55:44 -05:00
printf '%s\n' "$1" | pv -qL 20
2022-09-18 10:00:53 -05:00
sleep 1
}
cmd (){
clear
printf 'bash >> '
msg "$1"
$1
sleep 2
}