Browsing All Posts published on »October, 2009«

Add Color Coding to Mac OS X’s Quick Look for Source Codes

October 11, 2009

0

The Problem The recent releases of Mac OS X has a wonderful feature: quick look. By selecting a file in the Finder and hit spacebar, the user can quickly view the contents of that file, be it text, audio, video, graphics, and many other file types. I often want to quick look the contents of […]

Sweeten Bash History by Adding Grep

October 11, 2009

3

The Problem While I know about the Ctrl-R key combination in bash to perform an incremental reverse search the history; I often need to grep the history to find what I want. For example, to find out what directory I changed into, I issue the following command: That’s a lot of typing for a lazy […]

How to Assign a List’s Elements to Variables

October 8, 2009

2

The Problem You want to assign the contents of a list to a number of variables. For example, assigning contents of $argv to variables server, port, user, and password: The Solution This is what the lassign command is designed to do, see my previous post. However, prior to Tcl version 8.5, using lassign means you […]

Follow

Get every new post delivered to your Inbox.

Join 36 other followers