Changing your Unix prompt ------------------------- If you would like your unix prompt to reflect which directory you're in ... to do this (and other nifty things), include the information in the file 'prompt' in your .cshrc file. If you enter an 'ls -a' you'll see a .cshrc file. This file is executed every time you start a shell process (create your unix environment, happens when you log in). One handy tool is to create aliases, that is, commands that abbreviate longer commands. You can put aliases at the end of your .cshrc file. A useful example of this is alias rm 'rm -i' Then, the next time you log in, you can enter rm and it will treat it as 'rm -i' and ask you if you really want to remove a file. Suppose you keep your files for lab1 in a subdirectory called "Lab1" . Another handy alias is: alias cd1 'cd Lab1; ls' Then entering cd1 changes you to your subdirectory Lab1 and lists the files. Recall that cd by itself takes you back to your home directory. The prompt file includes the commands of how to change your unix prompt along with some useful aliases. First save the file off the link "prompt file" . Say you call it: prompt To include this file in your .cshrc file, enter: pico .cshrc Then put a blank line at the end of the file. Then use ^r (control-r) to include the prompt file, prompt, at the bottom of your .cshrc file. Save it. At your unix prompt to execute this, enter: source .cshrc After this, it automatically gets executed every time you log in.