Tech Life

.tcshrc aliases

Over at NSLog(), they’re chatting about their favorite .tcshrc aliases. Given the time I’m spending at terminal in Mac OS X, finding a great script can mean huge, instant time saving as well as the discovery of, yet another, utility which ships with the OS that I had no clue existed… case in point, the curl utility.

My meager contribution… directory list by recently changed:

alias lr ‘ls -lagFqt \!*’

# May 11, 2003
Twitter : Facebook : Email

Previously: To-Do Lists
Next Up: E3 Weblog
3 Comments (Comments are closed)
dord wrote:

you don't need the `\!*'.

here's one cute/dumb hack I'm proud of (slightly sanitized by using foo instead of what I normal call it):

alias foo 'set FOO="oneof `cat ~/foo.txt`"; set FOO=`$FOO`; curl -s $FOO | xv -root -quit -rmode 4 -'

foo.txt is a list of urls separated by newlines. oneof is a dumb perl hack that returns one of its arguments to stdout. so, it sets the variable FOO to be a call to oneof, then executes it saving the result to FOO, then curls it to xv to display it as a background.

two bits of hackish cuteness: (1) the result of the execution of FOO is saved back to FOO, and (2) FOO ends up, afterward, with the url of the randomly chosen file.

Eli Sarver wrote:

looks much better as 'ls -lFagqt'

My favourite Informix DB command is 'onmode -yuck' (brings the engine down to offline mode)


Popular

To understand nerds, you simply need The Handbook.

If you lead people, remember that Bored People Quit.

Bright ideas need the FriendDA.

You have 30 seconds to make an impression with your resume.

Stop reading right now. Look at your desktop. How many tasks are you working on besides reading this weblog? A lot? You've got N.A.D.D.

The Books

Being Geek CoverManaging Humans Cover

ADS BY FUSION

 

The Shirt

Rands Shirt 3

HOSTING BY

(mt) logo

Categories

Diversions

RANDS LTD.

Search