Handy configs for tcsh

As far as I'm concerned tcsh and its variants are pretty manky when compared to, say, bash or zsh but for whatever reason they're popular in high energy physics. Okay, the reason is that HEP institutes like CERN made them the default shell a long time ago and very few people change from the default if they've not used shells before. *sigh*

Still this means that even though I'm bash-centric most of the time sometimes things don;t work from bash and I have to launch into tcsh. So for what it's worth, here are three lines to go in your .tcshrc or .login file which make it all much more pleasant:

unset ignoreeof set autolist set prompt="%{\033[31;1m%}%n@%m %c3%{\033[34m%}%#%{\033[0m%} "

Respectively these allow you to logout using Ctrl-D, will list file completions when pressing tab (without having to press Ctrl-D), and will make the prompt a bit nicer / more helpful: this one's down to personal taste I guess! Hope that's useful. My own .tcshrc/.login is below in case that's helpful, too.

.tcshrc