commit a0465d5baf21638cf1cb6ca48163a45ee13fb59d
parent 2e8de7aaff0afd9f7d7a5ba84d7ec909d4a68442
Author: Jake Bauer <jbauer@paritybit.ca>
Date: Fri, 14 Jan 2022 04:35:56 -0500
Fix bug in watch function
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.shrc b/.shrc
@@ -19,7 +19,7 @@ pastesrv() {
# Usage: watch <interval> <command>
watch() {
interval="$1"; shift
- while true; do clear "$@"; sleep "$interval"; done;
+ while true; do clear; "$@"; sleep "$interval"; done;
}
# Aliases