Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-16-2004, 10:29 PM
|
#1
|
|
Member
Registered: Nov 2002
Location: Manila
Distribution: Fedora core 2 Gnome 2.6
Posts: 156
Rep:
|
newly opened terminal shows bash-2.05$ instead of path
Anyway to show the normal /jang or something? Thanks.
|
|
|
|
01-17-2004, 12:23 AM
|
#2
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,916
|
That's because the terminal in X is not
a login-shell ... you can
a) change the settings on your desktop/menu
for it to be a login-shell
or
b) create a .bashrc that sets PS1 accordingly.
Cheers,
Tink
|
|
|
|
01-17-2004, 12:28 AM
|
#3
|
|
Member
Registered: May 2002
Distribution: SUSE 9.2 Pro
Posts: 98
Rep:
|
You could also do the ls command to see what directory you are in 
|
|
|
|
01-17-2004, 12:59 AM
|
#4
|
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
Or 'echo $PWD' and not get the useless listing. But PS1 is much more convenient than either. 
|
|
|
|
01-18-2004, 05:10 PM
|
#6
|
|
Member
Registered: Nov 2002
Location: Manila
Distribution: Fedora core 2 Gnome 2.6
Posts: 156
Original Poster
Rep:
|
Thanks for the reply guys, but is there any .bashrc file that I can copy instead? I don't know how to create it from scratch. Also, how about the other option? (Changing the desktop menu to be a login shell) Where do I do this? I am currently using Mandrake 9.2. Is this available in control center? Thanks
|
|
|
|
01-18-2004, 05:21 PM
|
#7
|
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
mikshaw pointed you to lots of files to copy. There isn't really a 'how to create it from scratch'. It's basically just a text file of your prompt strings, environment variables, aliases, functions. Do a 'man bash' and see all the things you can do with the shell and put the simple stuff you want done automatically in the file, basically. And tinkster told you how to change the xterm. If you have ~/.bashrc source ~/.bash_profile or make one a symlink to the other, that will give you the same environment whether it's a login or not or you can probably just right click on the icons or pull up some gui menu editor or however it works and change the invocation from '?term' to '?term -ls'. The sourcing would probably be the best as you wouldn't have to possibly change it in several places.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:51 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|