Slackware This Forum is for the discussion of Slackware Linux.
|
| 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. |
|
 |
06-27-2004, 01:33 PM
|
#1
|
|
Member
Registered: Sep 2003
Location: mad.es.eu
Distribution: ubuntu 5.04 knoppix Slack91/10 freebsd51 vector4 redhat9
Posts: 304
Rep:
|
$PS1 different in X and prompt
When we first login, the default command prompt is: \u@\h:\w$
When the x started, the command prompt become bash 2.05b $
So, which script changed it to that useless prompt? I hope I can change that before touching .bashrc or /etc/profile
|
|
|
|
06-27-2004, 01:53 PM
|
#2
|
|
Member
Registered: Aug 2003
Location: Dallas,TX
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241
Rep:
|
Not really sure about the script, try making a file in your home directory called .bash_profile, and then put your PS1= stuff in there. Restart X.
Also, are you seeing "bash 2.05b $" in a X terminal like xterm? Its possible that you haven't set the program to use the login shell.
|
|
|
|
06-27-2004, 01:55 PM
|
#3
|
|
Senior Member
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282
Rep:
|
use the -ls switch
xterm -ls
and what about this 'reggae' prompt 
export PS1="\[\033[1;32m\]\u\[\033[1;33m\]@\[\033[1;31m\]\h\[\033[0;39m\]:\w\\$ "
|
|
|
|
06-27-2004, 01:58 PM
|
#4
|
|
Member
Registered: Aug 2003
Location: Dallas,TX
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241
Rep:
|
Heh, pretty cool actually. Of course, if reggae is not your thing, there is always the my cool poser prompt:
Code:
PS1="ELITE SWORD --> 0=--=[\w]==========> SLASH SLASH ENTER CMD >> "
Working directory INSIDE of the sword handle, thank you very much.
Last edited by veritas; 06-27-2004 at 02:09 PM.
|
|
|
|
06-27-2004, 02:15 PM
|
#5
|
|
Member
Registered: Mar 2004
Location: Darkest Oxfordshire
Distribution: Arch, Slackware
Posts: 184
Rep:
|
Quick-and-dirty fix:
cp /etc/profile ~/.bash_profile
cp /etc/profile ~/.bashrc
|
|
|
|
06-27-2004, 02:30 PM
|
#6
|
|
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Rep:
|
rather than copying the whole thing...
I set up .bashrc to source /etc/profile and ~/.bash_profile
Code:
source /etc/profile
source ~/.bash_profile
I do that, rather than changing every single reference to aterm or xterm to a login shell.
--Shade
|
|
|
|
06-27-2004, 03:33 PM
|
#7
|
|
Member
Registered: Mar 2004
Location: Darkest Oxfordshire
Distribution: Arch, Slackware
Posts: 184
Rep:
|
That's another way of doing it. You could also use symlinks instead of copying:
ln -s /etc/profile ~/.bash_profile
ln -s /etc/profile ~/.bashrc
Although I've just set my GNOME termnal to be a login shell. I don't use Konsole or Xterm.
|
|
|
|
06-27-2004, 04:42 PM
|
#8
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
cat /etc/profile > ~/.bashrc
cat /etc/profile > ~/.bash_profile
The many different ways to create a bash environment file.... 
|
|
|
|
| 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 08:44 AM.
|
|
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
|
|