Last active
May 28, 2020 20:27
-
-
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
This file contains hidden or 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
# 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