newly opened terminal shows bash-2.05$ instead of path
Linux - GeneralThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.