tcsh provides functionality for manipulating the command line, including word or command completion and the ability to edit a command line.
The shell automatically completes words and commands when you
press the Tab key, and notifies you when a completion is finished by
appending a space to complete filenames or commands and a
/ to complete directories.
In addition, tcsh
~ notation for home
directories; it assumes that words at the beginning of a line and
&& are commands, and
modifies the search path appropriately. Completion can be done
midword; only the letters to the left of the cursor are checked for
See the tcsh manpage for a discussion of the built-in command-line editor and its commands.
tcsh lets you move your cursor around in the command line, editing the line as you type. There are two main modes for editing the command line , based on the two most common text editors: Emacs and vi. Emacs mode is the default; you can switch between the modes with:
bindkey -eSelect Emacs bindings %
bindkey -vSelect vi bindings
The main difference between the Emacs and vi bindings is that the Emacs bindings are modeless (i.e., they always work). With the vi bindings, you ...