SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-22-2008, 11:35 AM
vtcad
 
Posts: n/a
Default set prompt to display cwd

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,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-22-2008, 11:35 AM
Bill Marcum
 
Posts: n/a
Default Re: set prompt to display cwd

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On