bash

zip zip

02.02.08 | No Comments

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!

Popularity: 4% [?]

some posts that may be related

your comments

You can skip to the end and leave a response. Pinging is currently not allowed.

Comment Policy: It's my site, I'll do whatever the hell I like.

You can use the following html formatting:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:

:


« apt-get remove dovecot spamassassin postfix
» Housekeeping, or, How To Obsessively Blow Up The Files Left Behind
Copyright © 2007-2008 command line idiot. All rights reserved.