Skip to content

Instantly share code, notes, and snippets.

@Asikur22
Created May 5, 2019 19:47
Show Gist options
  • Save Asikur22/872d554d1c2df83e185194de1e7f0c35 to your computer and use it in GitHub Desktop.
Save Asikur22/872d554d1c2df83e185194de1e7f0c35 to your computer and use it in GitHub Desktop.
Zip for WP #CommandLine
zipforwp() { FILENAME=`basename $1` && zip -r $FILENAME.zip $1 -x '/*.git/*' -x '/*.DS_Store' -x '/*.gitignore' -x '/*.idea/*' && echo 'Zipped!' | terminal-notifier -sound default }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment