LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2004, 09:10 PM   #1
Paxmaster
Member
 
Registered: Jun 2004
Location: unknown place in NYC
Distribution: Ubuntu
Posts: 377

Rep: Reputation: 30
help i can't save my PS1 setting


sh-2.05b$ echo $SHELL
/bin/sh
I am using a slackware base verison (collegelinux)

sh-2.05b$ cat .bashrc
sh-2.05b$ export PS1="\e[32;1mPaxmaster>\e[31;1m"
this works but when i try to exit from aterm then enter to aterm the setting is gone

sh-2.05$ cat .bash_profile
source ~/.bashrc

I am using fluxbox as my x window

also when i want to beconme su the prompt don't become # it stay like this paxmaster>
how should i know when i am root or when i am a user

I don't know what's wrong with my shell as u can it is a /bin/sh
 
Old 07-17-2004, 09:18 PM   #2
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
first, to me, it doesn't look like you put the PS1=... in .bashrc.
second (this is just a guess), maybe sh doesn't even use .bash* files.

Quote:
Originally posted by Paxmaster
when i want to beconme su the prompt don't become # it stay like this paxmaster>
maybe you're already running as root?

Quote:
Originally posted by Paxmaster
how should i know when i am root or when i am a user
run whoami.

Last edited by rgiggs; 07-17-2004 at 09:22 PM.
 
Old 07-17-2004, 10:24 PM   #3
Paxmaster
Member
 
Registered: Jun 2004
Location: unknown place in NYC
Distribution: Ubuntu
Posts: 377

Original Poster
Rep: Reputation: 30
Unhappy

as u can see i add put the line in

but i downloaded college linux i thought it comes with bash shell as deflut
if i have sh shell how would i change it to bash

as above i use cat command and u can see what's in my bashrc and bash_profile

thanks
 
Old 07-17-2004, 10:39 PM   #4
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
to change your shell, run chsh.

Quote:
Originally posted by Paxmaster
as above i use cat command and u can see what's in my bashrc and bash_profile
well your first post doesn't show the contents of your files at all.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save the setting of gVim? ICO Linux - Software 4 02-07-2004 05:58 PM
Save setting in MDK9.2 d4d4n9 Mandriva 0 12-17-2003 10:29 PM
Setting PS1 variable for KDE Konsole shell (RH9) robertmarkbram Linux - Software 4 10-14-2003 07:38 PM
setting the PS1 enviroment variable in xterm qanopus Linux - General 2 04-29-2003 08:41 AM
DMA setting won't save willywonka Linux - Hardware 6 04-12-2003 07:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration