| Author |
Message |
enhu

Joined: 26 May 2009 Posts: 299
|
Posted: Sun 14 Mar 2010, 21:52 Post subject:
How to always show current working dir in rxvt? |
|
help me edit my rxvt terminal to show current working dir without typing pwd.
rxvt just show # in it. how can i do it?
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9850 Location: Arizona USA
|
Posted: Sun 14 Mar 2010, 22:59 Post subject:
|
|
I assume you want the pwd to be shown instead of, or in addition to, the # prompt. I'm pretty sure this exact question has been answered in the forum, perhaps as long ago as several years. I can't remember who answered it, but you might limit your search to posts made by pizzasgood. Or maybe it's in the How To section. Sorry I can't be more helpful than that.
|
|
Back to top
|
|
 |
Cow
Joined: 14 Mar 2010 Posts: 3
|
Posted: Mon 15 Mar 2010, 02:30 Post subject:
|
|
type
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9850 Location: Arizona USA
|
Posted: Mon 15 Mar 2010, 10:13 Post subject:
|
|
Cool. I copied the line from your post, then pasted it into rxvt by simultaneously clicking the right and left mouse buttons. It worked.
|
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: Mon 15 Mar 2010, 11:35 Post subject:
|
|
Yes, It works. But how do you make it persistent on every start of rxvt?
_________________ PET Maker|WbarCC|My Website
|
|
Back to top
|
|
 |
Shel
Joined: 11 Apr 2009 Posts: 102 Location: Seattle, WA, USA, or Southern France
|
Posted: Mon 15 Mar 2010, 12:08 Post subject:
|
|
| trio wrote: | | Yes, It works. But how do you make it persistent on every start of rxvt? |
Put it in your .bashrc!
-Shel
|
|
Back to top
|
|
 |
trapster

Joined: 28 Nov 2005 Posts: 1966 Location: Maine, USA
|
Posted: Mon 15 Mar 2010, 12:15 Post subject:
|
|
Try This one
_________________ trapster
Maine, USA
Asus eeepc 1005HA PU1X-BK
Frugal install:Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Puppeee-1.0 AND lupu52 w/ fluxbox
|
|
Back to top
|
|
 |
enhu

Joined: 26 May 2009 Posts: 299
|
Posted: Mon 15 Mar 2010, 22:39 Post subject:
|
|
thanks.. my eyes don 't hurt anymore.
|
|
Back to top
|
|
 |
DC

Joined: 30 Apr 2006 Posts: 337 Location: Maidenhead, England
|
Posted: Tue 16 Mar 2010, 07:04 Post subject:
|
|
might be a bit late but here's my script that I run for a new install
| Code: | #!/bin/sh
## change prompt from "#" to "path # " in /etc/profile - by DC 7/7/09
# change directory to etc to make sure your in the right directory
cd /etc
sed -i 's_PS1="# "_PS1="\\w # "_' profile
## what it all means
# sed stream editor
# -i edit the file in place
# '...................' inclose in single quotes in case of meta-characters
# s substution option
# '_........_........_' underscores used as a delimiter to aid clarity
# \\ two back slashes required, one as escape for the second as part of the PS1 option |
and another tip for the day
from a rox window using the ` (back tic) usually left of the 1 key
opens a rxvt terminal to the path of the rox window
DC
|
|
Back to top
|
|
 |
|