Skip to content

Instantly share code, notes, and snippets.

@amiralles
Last active May 25, 2021 14:34
Show Gist options
  • Save amiralles/46387739bf01b42ec34428bad6b27226 to your computer and use it in GitHub Desktop.
Save amiralles/46387739bf01b42ec34428bad6b27226 to your computer and use it in GitHub Desktop.
#!/bin/bash
# This is a wraper around the standard find command that excludes directories
# we typically want to ignore while working with source code.
# This function is handy when we are trying to fuzzy find files using tools like
# *selecta*
find * -type f \
-not -path "_build/**" \
-not -path "bin/**" \
-not -path "deps/**" \
-not -path "doc/**" \
-not -path "node_modules/**" \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment