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

