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 18 Dec 2014, 04:42
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 Posts_count  
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_website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11180
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: 11180
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: 1942
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?
_________________
My apps
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: 2030
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_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_website 
DC


Joined: 30 Apr 2006
Posts: 361
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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