add watch command for users of git-bash where the watch command is not included.

This commit is contained in:
Joe Tretter
2020-09-04 15:20:39 -05:00
parent 2610ab93c9
commit 02d36957a7

9
watch Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
while [ 1 == 1 ]
do
$1 > /tmp/watch-$$.tmp
clear
echo -e "\e[5;49;90m------------------------| \e[1;42m$(date)\e[5;49;90m |-----------------------\e[1;0m"
cat /tmp/watch-$$.tmp
sleep 1
done