Home

Resume

Tech

Tim's HOWTOs
GuruVim
GuruTcsh

Trip Reports

Europe Trip Report (2000)

Pictures

Still Here

OOFNet Cinema
OOF Music
FiSSH

External

ArtKomiChen.com
(Mom's Paintings)

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 

TCSH Tweaks

Shells are designed so that you can immediately start using them, but it seems like you never stop learning or applying a new trick/tweak. Here are my list of tweaks.


Options For Your .tcshrc/.cshrc

Remember your tcshrc if executed everytime a shell is needed -> so keep login/prompt specific options in a separate area by enclosing them in:

if (${?prompt}) then
[whatever you need to do here...]
endif

Every once in a while I'll be working at a site that doens't have tcsh <gasp!> so I'm forced to default to csh. As a result I wrap all my tcsh specific options in:

if ($shell =~ *tcsh) then
[specific tcsh stuff here...]
endif

Useful TCSH options to set:

set autolist
Autolists file matches on TAB
set complete='enhance'
Completion ignores case, considers separators
set rmstar
Prompts you before you do something stupid.
set printexitvalue
Print exit value of programs if non-zero
set ampm
Prints time as am / pm rather than 24 hr format.
set mail
Watches out for your mail
set watch = (1 any any)
Be a snoop. Watch who comes on/off system

alias cwdcmd 'echo -n "^[]2;${HOST}:$cwd^G"'

On xterm tihs can be used to dyamnically switch your title bar. Note that the ^ is a CTRL character! You must literally insert a CTRL character in there for this to work (Use CTRL-V in vim).

bindkey "^B" backward-word
bindkey "^F" forward-word
bindkey "^^?" backward-delete-word

Some standard bindings I have. CTRL-B, CTRL-F are sort of substitutes for the CTRL-LEFT, CTRL-RIGHT that windows folk are used to. Unfortunately I can't seem to bind those.


Last Updated: March 28, 2000
Maintainer: Timothy Chen <babyduck@massconfusion.com>

All Content is Copyrighted 1998-2003 by Timothy Chen
All Rights Reserved unless clearly stated otherwise.