Files
dotfiles/bash.d/20-commands.sh
2021-11-16 20:33:34 +00:00

18 lines
297 B
Bash

#!/bin/bash
function gr() {
cd "$(git rev-parse --show-toplevel)" || return
}
function tdd() {
set +e
path=$1
shift
echo "Path: \"$path\""
echo "Command: \"$@\""
while [[ $? == 0 ]]
inotifywait -r "$path" -e create -qq;
eval "$@"
do echo $?; done;
}