Adding an alias to the Tcsh Shell
If you run a command frequently, you can create what is called an alias. The alias is usually a shorter form of the original command.
To make these aliases permament, you should edit .tcshrc in your home directory.
11:32:07 /Users/jasonn $ vi ~/.tcshrc
Add a line of text of the format “alias YYY ‘ZZZ'” where YYY is the command you want to type in, and ZZZ is the command you want to be run.
# Show long listing
alias ll ‘ls -al’
# Use VI Improved instead of Vi
alias vi ‘vim’
# Change into your web directory
alias web ‘cd /usr/local/apache/vhosts/jasonnoble.org/htdocs’
This alias ability allows you to type less at your shell prompt. If you find yourself typing the same long command line over and over, try adding an alias to your shell that will save you some time.