This commit is contained in:
Daniel Flanagan 2019-10-30 10:08:15 -05:00
parent 67eafce5ff
commit b58b2630bf
2 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,11 @@
#!/usr/bin/env bash
# Some examples in case you forget:
# Elixir: fsw "mix run" ./**/*.{ex,exs}
# Run bash file on any event (note single quotes): fsw 'bash ${__FSW_FILENAME}' ./**/*.bash
SHELL_COMMAND="${1}"
shift
inotifywait -q -m -e close_write -r "${@}" | while read -r _ _; do
inotifywait -q -m -e close_write -r "${@}" | while read -r __FSW_FILENAME __FSW_EVENT; do
eval "${SHELL_COMMAND}"
done

3
bin/termrec Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
asciinema rec -i 2 --stdin