Was this after you made the change?
The sources for your bash depends on the which distro you're using.  I know SuSE has some sources that start from your home directory that have imports from other sources in /etc/ and sources from there, kinda an object orientated apoarch.  If you want to waste some time and learn as much as you can with bash scripts and sources try googling *bash script example* this should give you lots of examples to work off of.

BTW FYI try this in command line:

> PS1=$'\d \l [EMAIL PROTECTED]> '

Very good way of testing things.



Curtis Sloan wrote:
On Fri, 2003-12-12 at 11:29, Jason Louie wrote:
  
export PS1='[EMAIL PROTECTED]:\w\# '
should do it.  
    

I was going to ask if I need to export the PS1 variable while su'd as root, then I thought, "Duh, I should just
try it.".  So, I popped open a new rxvt term and su'd, and low and behold my root prompt is '#' again.  Weird.
Any explanations?

  
Also make sure that is the right .bashrc that you are using.  
There is a default one in /etc/bashrc that all users use if there isn't one in their home directory.

    
Yeah, I mentioned /etc/profile as a stab-in-the-dark, since Slack 9.1
does have an /etc/bashrc rile.  If you know of any other places the
defaults might come from, please let me know.

Thanks Jason!

Curtis
  

Curtis Sloan wrote:

    
Disclaimer:  I'm a n00b when it comes to shells/xterms...

I got into customizing my terminals last night (had enough of black on
white rxvt)  ;-) and followed right into customizing my shell this
morning.  Unfortunately, now when I su to root, the default prompt
character is still '$' instead of '#'.

Here's my current .bashrc file:

# .bashrc

export PS1='[EMAIL PROTECTED]:\w\$ '
umask 022

# Adding colour descriptions to files and dirs

export LS_OPTIONS='--color=auto'
eval `dircolors -b`
alias ls='ls $LS_OPTIONS'

# User specific aliases and functions

# Makes current directory title of the console

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

How do I make the root prompt '#' again?

It used to before I made my .bashrc file.  I poked around /etc/profile,
but I didn't see anything obvious (it would have to be!).  ;-)  The OS
is Slackware Linux 9.1.

Any suggestions?

Thanks,
Curtis





_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
 

      


_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
  

-- 

Jason Louie BSc. CPSC
Web Applications Developer
Sorex Software Inc.
[EMAIL PROTECTED]
_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to