Something I didn’t know until recently: zsh does not require cd to change directories. Using the directory as a command implies “cd”. For example, instead of doing: me@server:/home/me $ cd /tmp me@server:/tmp $ You can just do: me@server:/home/me $ /tmp me@server:/tmp $ That’s three whole keystrokes (nearly half the command shown above), all day long.
Read the rest of this entry »
Every now and then I have to run a foreground job under sudo that doesn’t want to die when I hit ^C. Then it’s a hassle to ^Z, get the pid of the sudo job, and sudo kill that pid. So I wrote a little script (or a template for scripts) that runs the sudo [...]
Read the rest of this entry »
I recently found myself wanting to quickly figure out how far (both miles and driving time) it is to various destinations. At first I was keeping a Firefox tab open to Google Maps and kept keying in the address for the destination. Then I realized that I could make a “Quick Search” and get the [...]
Read the rest of this entry »
From The Peanut Gallery