OS X terminal settings for tcsh

Everyone seems to love two features of my OS X environment. Color terminals, and an updating title bar that even works when you ssh. Rock.

Put the following in your .cshrc or .tcshrc file in your home directory.

# Terminal stuff
setenv TERM "xterm-color"
setenv CLICOLOR "true"
setenv LSCOLORS "exfxcxdxbxegedabagacad"

# Auto complete

set fignore = (.o \~)
set complete = enhance

# Title bar
setenv SHORTHOST `echo -n $HOST | sed -e 's%\..*%%'`
alias precmd 'printf "\033]0;%s @ $SHORTHOST\007" "${cwd}" | sed -e "s%$HOME%~%"'
sched +0:00 alias postcmd 'printf "\033]0;%s @ $SHORTHOST\007" "\!#"'