2 # ~/.tcshrc - Setup user shell environment
4 # See also tcsh(1), environ(7).
9 alias h 'history \!* 20'
16 # The following commands are only for interactive shells.
33 prompt='%N@%m:%B%c02%b%# ' \
35 savehist=(1000 merge) \
42 bindkey " " magic-space
43 bindkey ^W backward-delete-word
44 bindkey ^Z run-fg-editor
45 bindkey ^[^W kill-region
48 # Setup $hosts from ~/.hosts, ~/.rhosts, ~/.ssh/known_hosts
53 foreach f ( ~/.{,r,ssh/known_}hosts )
62 -e 's/[[:space:]].*$//' \
66 -e 's/:[[:digit:]]*$//' \
67 -e 's/^\[\([^]]*\)\]$/\1/' \
68 -e '/^[.:[:xdigit:][:space:]]*$/d' \
79 # Copy from complete.tcsh
81 if ( -r ~/.complete ) source ~/.complete
87 # Set status to ^G in order to keep using ^T for transpose-char.
96 if ( $?tcsh ) bindkey ^G stuff-char
101 # We don't want to create a root-owned files in our home.
104 if ( $uid == 0 ) then
106 setenv LESSHISTFILE -
107 setenv VIMINIT ':set viminfo='