Last active
October 9, 2018 19:11
-
-
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`)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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