vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On 2008-01-19, vtcad <[email protected]> wrote: > > > I am running fedora 8 with cshell (I believe this is what I'm running > since I have a .cshrc file, I'm new to this) and I would like to > always have my current directory displayed as my prompt, how do I do > this? > > thanks, If you have a .cshrc, tcsh is probably installed, but it isn't necessarily your default shell. At a shell prompt you can type echo $SHELL or grep "username" /etc/passwd If your shell is tcsh, you can set the variable "prompt" in your ..cshrc or .login. Read "man tcsh" to see what special characters can be used in the prompt. "%/" is replaced by the full name of the current directory; "%~" is the current directory with "~" replacing the name of your home directory. If your shell is bash (the default in most Linux installations), the prompt variable is PS1, set in the .bashrc script, and \w or \W represents the current directory. |
| Thread Tools | |
| Display Modes | |
|