Updates
This commit is contained in:
parent
67eafce5ff
commit
b58b2630bf
6
bin/fsw
6
bin/fsw
|
@ -1,7 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/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}"
|
SHELL_COMMAND="${1}"
|
||||||
shift
|
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}"
|
eval "${SHELL_COMMAND}"
|
||||||
done
|
done
|
||||||
|
|
3
bin/termrec
Executable file
3
bin/termrec
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
asciinema rec -i 2 --stdin
|
Reference in a new issue