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 Mon 22 Dec 2014, 05:23
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Terminal Path
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
badab99

Joined: 06 Oct 2012
Posts: 6

PostPosted: Mon 08 Oct 2012, 15:48    Post_subject:  Terminal Path
Sub_title: PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: $PWD\a\]$PS1"
 

so I notice that .bashrc is unused and etc/profile is called for rox terminal.
This is using Lucid 5.2.8 build btw.


so I want to display the path as normal.

ala debian PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: $PWD\a\]$PS1" style

I changed PS1="$pwd" but nothing changed so I have a feeling $pwd variable is not set or some such..

I suck at this scripting type stuff can someone help

whats the equivalent for puppy? I would like to display user@host\currentpath\

thanks fellers
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4465
Location: Gatineau (Qc), Canada

PostPosted: Mon 08 Oct 2012, 16:22    Post_subject:  

Hello, badab99.

You mean to set the prompt? Attached is my .bashrc file. I leave you to judge if it's widely different than in Debian.

I can't see from from your info above what you are doing "right" or "wrong" within the Puppy context, except of course that Puppy doesn't have "debian_chroot", just plain "chroot", etc.

Maybe you can put my bashrc file under your microscope and even do some surgery on it! Shocked

It also contains a few credits, where I found some variables, etc. Maybe you can look those up on the Internet for more insights. 'Cause that's a wide, wide field of exploration, my friend...

A secondary benefit is that you'll be brushing up on your French! Smile Don't worry, the words in the remarks are very basic, there should be nothing in them that you won't understand after having consulted http://wordreference.com/fren/. Or simply let the code explain itself? Of course, get back to me for explanations if you're really stuck.

Incidentally, back up your .bashrc file if you have one?

Have fun!
.bashrc-musher0.tar.gz
Description 
gz

 Download 
Filename  .bashrc-musher0.tar.gz 
Filesize  1.4 KB 
Downloaded  371 Time(s) 

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
Semme

Joined: 07 Aug 2011
Posts: 4138
Location: World_Hub

PostPosted: Mon 08 Oct 2012, 18:30    Post_subject:  

Along with Wink Mushers`response..
Back to top
View user's profile Send_private_message 
Bruce B


Joined: 18 May 2005
Posts: 11131
Location: The Peoples Republic of California

PostPosted: Mon 08 Oct 2012, 22:09    Post_subject: Re: Terminal Path  

[quote="badab99"]I changed PS1="$pwd" but nothing changed so I have a feeling $pwd variable is not set or some such..

True the variable is $PWD

also for full path \w and for current directory \W

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send_private_message 
badab99

Joined: 06 Oct 2012
Posts: 6

PostPosted: Tue 09 Oct 2012, 02:27    Post_subject:  

Thanks for the info fellas.. will bang it around tomorrow and see what floats.

D
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.0493s ][ Queries: 13 (0.0044s) ][ GZIP on ]