From 02d36957a796507b2f31fe1419251a81783d0cd8 Mon Sep 17 00:00:00 2001 From: Joe Tretter Date: Fri, 4 Sep 2020 15:20:39 -0500 Subject: [PATCH] add watch command for users of git-bash where the watch command is not included. --- watch | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 watch diff --git a/watch b/watch new file mode 100644 index 0000000..c018c32 --- /dev/null +++ b/watch @@ -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