csh sensible defaults
# A righteous umaskumask 22
# environment configset path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/bin) setenv EDITOR vi setenv PAGER more setenv BLOCKSIZE K
# if interactive, configure furtherif ($?prompt) then # interactive prompt set prompt = "%N@%m:%~ %# “ set promptchars = ”%#"
# history config set history = 5000 set savehist = 5000
# complete case-insensitive set complete = enhanced # print possible completions if more than 1 match set autolist = ambiguous # enable filename completion set filec # shut up set nobeep # enable redirect protections set noclobber # forbid rm * set rmstar # mail? set mail = (/var/mail/$USER)
# convenience bindkeys, similar to emacs or inputrc # ALT-LEFT bindkey "^[^[[D" backward-word # ALT-RIGHT bindkey "^[^[[C" forward-word # ALT-UP + HOME bindkey "^[^[[A" beginning-of-line # ALT-DOWN + POS1 bindkey "^[^[[B" end-of-line # CTRL-R (like bash), then type bindkey "^R" i-search-back # SHIFT-TAB cycles through possible completions, let go if good bindkey "^[[Z" complete-word-fwd endif