Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Oct 2014, 02:11
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to always show current working dir in rxvt?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
enhu


Joined: 26 May 2009
Posts: 301

PostPosted: 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
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11120
Location: Arizona USA

PostPosted: 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. Sad
Back to top
View user's profile Send private message 
Cow

Joined: 14 Mar 2010
Posts: 3

PostPosted: Mon 15 Mar 2010, 02:30    Post subject:  

type
Code:
export PS1='\w# '
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11120
Location: Arizona USA

PostPosted: 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. Smile
Back to top
View user's profile Send private message 
trio


Joined: 21 Dec 2008
Posts: 1803
Location: अनुमोदना

PostPosted: 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
Back to top
View user's profile Send private message 
Shel

Joined: 11 Apr 2009
Posts: 103
Location: Seattle, WA, USA, or Southern France

PostPosted: 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
View user's profile Send private message 
trapster


Joined: 28 Nov 2005
Posts: 2006
Location: Maine, USA

PostPosted: 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 Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
enhu


Joined: 26 May 2009
Posts: 301

PostPosted: Mon 15 Mar 2010, 22:39    Post subject:  

thanks.. my eyes don 't hurt anymore.
Back to top
View user's profile Send private message Visit poster's website 
DC


Joined: 30 Apr 2006
Posts: 359
Location: Maidenhead, England

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0561s ][ Queries: 11 (0.0046s) ][ GZIP on ]