Thursday, August 20, 2009

Correctly Setting Your Prompt in tcsh or csh

This is *the* way (no arguments please)

set prompt='%~/ !>'

How to set your PATH - the wrong way :

(wrong)

setenv PATH whatever
or
set PATH ($PATH:/dir/dir2)

right way :

set path ($path /dir/dir2)
(that's magic, $PATH gets set automatically, in tcsh or csh - bash is crap of course)

Good aliases to set

ll ls -l !\*
lt ls -lt !\* \| less -X
nes echo \$cwd/!\*

No comments: