diff --git a/bashrc b/bashrc index 6fdb9f1..ab0de77 100644 --- a/bashrc +++ b/bashrc @@ -27,6 +27,7 @@ alias qed='[ $RANDOM -ge $((32767 / 100 * 10)) ] && echo Quod Erat Demonstrandum alias u='unicode' alias hlcat='highlight -O xterm256' alias please='sudo' +alias ofw='on_file_write' export HISTIGNORE='ls:clear:history:vimswitch*' if which nvim > /dev/null diff --git a/bin/on_file_write b/bin/on_file_write new file mode 100755 index 0000000..286a7d9 --- /dev/null +++ b/bin/on_file_write @@ -0,0 +1,5 @@ +#!/bin/sh + +while inotifywait --recursive --event CLOSE_WRITE . > /dev/null 2>&1 +do $@ +done