diff --git a/qcd_function b/qcd_function index f7f6035..e136338 100644 --- a/qcd_function +++ b/qcd_function @@ -137,8 +137,6 @@ Keeps a history of folders visited in ~/.bash_cdhistory } - - function whenfilechanges() { [ -z "$2" ] && { echo 'Usage: whenfilechanges "file" "some" "command" Follows the modification time of the "file" and runs the command @@ -172,6 +170,7 @@ function whenfilechanges() { echo "${fname[$i]} changed:" eval "$@" otime[$i]=$( stat -c %Z "${fname[$i]}" ) + echo "Waiting for file changes..." } done sleep 2