I found myself wanting watch on macos, and was taught it's a linux specific thing.
This function gets pretty close to must-have parts of watch that I wanted.
watch() {
local i=${1:-2}; shift
while :; do
tput cup 0 0
printf "\033[1mEvery %ss — %s\033[0m\n\n" "$i" "$(date)"
"$@" 2>&1
sleep "$i" || break
done
}Do you have any shell functions/aliases that you find useful?