From the tcsh documentation:
When and how tcsh executes startup files.
For Login shells (subject to the -f option):
On logging in:
If `/etc/csh.cshrc' exists, then source it.
If `/etc/csh.login' exists, then source it.
If `~/.tcshrc' exists, then source it,
else if `~/.cshrc' exists, then source it.
If `~/.history' exists, then source it.
If `~/.login' exists, then source it.
If `~/.cshdirs' exists, then source it
(or the value of the dirsfile shell variable)
On logging out:
If `/etc/.csh.logout' exists, source it.
If `~/.logout' exists, source it.
For non-login interactive shells (subject to the -l and -d options):
On starting up:
If `/etc/csh.cshrc' exists, then source it.
If `~/.tcshrc' exists, then source it,
else if `~/.cshrc' exists, then source it.
Command line editor and bindkey
tcsh has the ability to edit the command line
and history. You can set your editor style to vi-style
or emacs-style by placing one of the following
commands inside your $HOME/.tcshrc file:
bindkey -v For vi-style
bindkey -e For emacs-style
|