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 24 Apr 2014, 03:50
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 [5 Posts]  
Author Message
badab99

Joined: 06 Oct 2012
Posts: 6

PostPosted: Mon 08 Oct 2012, 15:48    Post subject:  Terminal Path
Subject description: 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: 3810
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  313 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 poster's website 
Semme

Joined: 07 Aug 2011
Posts: 3288
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: 11052
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 from previous:   Sort by:   
Page 1 of 1 [5 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.0513s ][ Queries: 13 (0.0121s) ][ GZIP on ]