Skip to content

Instantly share code, notes, and snippets.

@bmchild
Created January 3, 2017 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmchild/f1cad6927996c78f83056a7322b0f249 to your computer and use it in GitHub Desktop.
Save bmchild/f1cad6927996c78f83056a7322b0f249 to your computer and use it in GitHub Desktop.
function to zip text + encrypt, 2 params (text to encrypt, filename w/o extension). Add to .bash_profile
#function to zip text + encrypt, 2 params (text to encrypt, filename w/o extension)
function zipe() {
echo "$1" > $2.txt && zip -e $2.zip $2.txt && rm $2.txt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment