Skip to content

Instantly share code, notes, and snippets.

@igemnace
Created September 13, 2017 15:07
Show Gist options
  • Save igemnace/a4b87573531a8e72e47d864ebd4d86d8 to your computer and use it in GitHub Desktop.
Save igemnace/a4b87573531a8e72e47d864ebd4d86d8 to your computer and use it in GitHub Desktop.
Snippets for an inotifywait loop to regenerate ctags.
watchdir() {
inotifywait -rme modify --format '%w%f' "$1"
}
watchdir src | while read -r filename; do ctags -a "$filename"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment