The time now is Wed 19 Jun 2013, 04:18
All times are UTC - 4 |
| Author |
Message |
badab99
Joined: 06 Oct 2012 Posts: 6
|
Posted: 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
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 2273 Location: Gatineau (Qc), Canada
|
Posted: 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!
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! 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!
 |
| Description |
|

Download |
| Filename |
.bashrc-musher0.tar.gz |
| Filesize |
1.4 KB |
| Downloaded |
185 Time(s) |
_________________
"To err is human; to really foul things up, you need a computer!" / "L'erreur est humaine; pour vraiment f... la m..., il faut un ordinateur." (Carleton University, banderole à la Rentrée 1979 / banner, start of 1979 school year) 
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2119 Location: World_Hub
|
Posted: Mon 08 Oct 2012, 18:30 Post_subject:
|
|
Along with Mushers`response..
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10823 Location: The Peoples Republic of California
|
Posted: 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
|
|
 |
badab99
Joined: 06 Oct 2012 Posts: 6
|
Posted: 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
|
|
 |
|
|
|
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
|