zip zip

It’s the simplest things. Really. I do the same dumb thing 50 times without ever stopping to think if there might be a better way. And then, when I stumble into it, I smack myself in the forehead.

Zips. I work with WordPress, and on my development install I’m constantly downloading new themes or plugins to try them out. I’d rather use the terminal than an FTP client, so I’m usually using wget to pull the zip file into the plugins folder, unzipping it, then deleting the original zip file.

It took me 6 months of doing this before I realized that I could add one single line to my bash_profile to ease all of the pain.

alias zz="unzip *.zip && rm *.zip"

It seems small, and it is, but my zen-like happiness quotient has been skyrocketing ever since.

Share and enjoy!

Leave a Reply