Excluding multiple patterns when creating a zip fileBy Sidney Liebrand on Jun 06, 2018 • 1 min read
vim.org doesn't allow zip files that are too large and the documentation I wrote contains a lot of example gif files. So to keep the zip size low I use the following command:
zip -r mkdx.zip mkdx -x "*git*" -x "*.gif" -x "*test*"
This recursively adds files while excluding any git, gif, or test files / directories.