LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 01-16-2004, 10:29 PM   #1
jang
Member
 
Registered: Nov 2002
Location: Manila
Distribution: Fedora core 2 Gnome 2.6
Posts: 156

Rep: Reputation: 30
Unhappy newly opened terminal shows bash-2.05$ instead of path


Anyway to show the normal /jang or something? Thanks.
 
Old 01-17-2004, 12:23 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
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
 
Old 01-17-2004, 12:28 AM   #3
Darkangel90
Member
 
Registered: May 2002
Distribution: SUSE 9.2 Pro
Posts: 98

Rep: Reputation: 15
You could also do the ls command to see what directory you are in
 
Old 01-17-2004, 12:59 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Or 'echo $PWD' and not get the useless listing. But PS1 is much more convenient than either.
 
Old 01-17-2004, 01:44 AM   #5
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
There are some interesting examples of bashrc files here
http://www.dotfiles.com/index.php3?cat_id=6

And if you want to get really nuts, you could mess around with this
http://www.gilesorr.com/bashprompt/howto/x622.html
 
Old 01-18-2004, 05:10 PM   #6
jang
Member
 
Registered: Nov 2002
Location: Manila
Distribution: Fedora core 2 Gnome 2.6
Posts: 156

Original Poster
Rep: Reputation: 30
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
 
Old 01-18-2004, 05:21 PM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Get into X11 as well as to terminal--Some Space error it shows covaigold Linux - Software 0 02-19-2005 09:24 AM
is there a terminal command that shows how much space is left in my partitions lemuel Linux - Newbie 3 01-23-2005 07:16 PM
Newly opened Fvwm Forum! weather Linux - General 3 12-12-2004 09:44 AM
cannot login as newly created user in terminal linoops Linux - Newbie 1 06-04-2004 08:07 PM
Resizing a terminal opened with CTRL-T in Konqueror SylvainP Linux - General 0 03-02-2004 08:20 PM


All times are GMT -5. The time now is 02:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration