Skip to content

Instantly share code, notes, and snippets.

@scottopolis
Last active May 28, 2020 20:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottopolis/d11a31fae9f96a663fe8bea3b80bfaae to your computer and use it in GitHub Desktop.
Save scottopolis/d11a31fae9f96a663fe8bea3b80bfaae to your computer and use it in GitHub Desktop.
ZSH alias to zip current folder, remove git and DS Store files, and show in finder
# put this in your .zshrc file, change path to store zip, restart terminal
# run command `releasezip my-files-1.0`, which would create a zip at ../my-files-1.0.zip
# change output path (../) to whatever you want, for example Users/Me/Plugins/Releases/$1.zip
releasezip() {
zip -r ../$1.zip . -x '*.git*' --exclude=\*.DS_Store\*
open ../
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment