aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/scripts/watch
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/scripts/watch')
-rwxr-xr-xdotfiles/scripts/watch12
1 files changed, 12 insertions, 0 deletions
diff --git a/dotfiles/scripts/watch b/dotfiles/scripts/watch
new file mode 100755
index 0000000..b40c0af
--- /dev/null
+++ b/dotfiles/scripts/watch
@@ -0,0 +1,12 @@
+#!/bin/bash
+command=$@
+
+clear
+
+while true
+do
+ eval "$command"
+ sleep 1
+ echo -n -e "$clearline"
+ clear
+done