Some people don't like to put the current directory, hostname, etc. into their prompts because it makes the screen look cluttered to them. Here's another idea. If your terminal or window system has a status line or title bar, you might be able to put the information there. That's nice because you'll be able to see the information while you run programs. The bad side is that the information can get out-of-date if you use a command that takes you to another host or directory without updating the status line.
Here's a cd alias and other commands for your .cshrc file. If I were logged in to www.jpeek.com in the directory /home/jpeek , this alias would put:
in the status area.
Of course, you can change the format of the status line.
Change the command string below,
If you always use a VT102-type terminal (and many people do), that alias will work fine. If you use a different terminal, read its manual or itsand find the escape sequences that work for it.
People who use more than one type of terminal, that aren't all VT102-compatible, can add aor to test the terminal type and use a cd alias written for that terminal. (The alias can also put the status information in the shell prompt on terminals that don't have a status line.) But you might have some trouble: if the alias is defined in your .cshrc file but your terminal type is set in your .login file, the terminal type may not be set until after the alias has been read. There are .
The status line can also get out of sync with reality if you use