Skip to content

Instantly share code, notes, and snippets.

@Ziggoto
Last active October 9, 2018 19:11
Show Gist options
  • Save Ziggoto/ee0e51929c09dbb846e3472e6b5a4205 to your computer and use it in GitHub Desktop.
Save Ziggoto/ee0e51929c09dbb846e3472e6b5a4205 to your computer and use it in GitHub Desktop.
It indents all .js files from current directories to all subdirectories (needs `fd` installed but can be replaced easily by `find`)
fd -e js | xargs -n1 bash -c '</dev/tty vim -c "normal! gg=G" -c "x" "$@"' ignoreme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment