set prompt="%/ > "Copy the above lines to
# set prompt="%{\033]0;%M: %c\007%}%/ > "
set complete=enhance
set autolist=true
set colorcat
setenv GREP_OPTIONS --color=auto
setenv GREP_COLOR 32
$HOME/.tcshrc
. The first 3 are the most important ones to remember. Setting prompt to "%/ > "
puts the $cwd
in the front of the command prompt. $cwd
is the same as the all-upper-case $PWD
but is easier to type.To list current key bindings in tcsh:
$ bindkeyTo use vi-mode or emacs-mode command-line editing and navigation:
"^A" -> beginning-of-line
"^D" -> delete-char-or-list-or-eof
"^E" -> end-of-line
"^I" -> complete-word
"^J" -> newline
"^K" -> kill-line
"^L" -> clear-screen
"^M" -> newline
"^P" -> up-history
"^T" -> transpose-chars
"^U" -> kill-whole-line
"^W" -> kill-region
... ...
bindkey -v
bindkey -e