You are not logged in.
Pages: 1
I figured out how to change the prompt for the su, but when I go back to the normal user, it is the same old prompt. I would like to have the same set up but with a different \u color to be able to easily tell them apart. Does the bash.bashrc file not change the prompt for the user, because no matter what I'm doing, all I can get it to change is for the su. Thank you!
Last edited by daemonspecter (2011-02-03 04:39:43)
Offline
It would help if you told us what you are actually doing, rather than just telling us that it isn't working. What have you added to .bashrc?
It should be as simple as setting the PS1 variable.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Sorry. I'm trying to change how the prompt colors/layout. I have edited PS1 in my .bashrc file, and that changes how the SU prompt looks, but I want to also change the normal user's prompt. My current PS1 is:
PS1='\[\e[1;30m\][\t]\[\e[1;31m\][\u]\[\e[1;34m\][\W]\[\e[1;0m\]\$ '
Other things are changed in the .bashrc file, but are irrelevant (aliases and the like).
Maybe its as simple as the computer needs a reboot before konsole will change it?
Offline
su switches to root who uses a different .bashrc than the regular user
be sure you are editing the correct one
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
I'm in /etc/bash.bashrc and that seems to be changing the su one. Where would I find the .bashrc for the regular user?
Offline
if you don't have one, you can create one under /home/user --- >> ~/.bashrc
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
That's what I needed, and its working now, thanks!
Offline
Pages: 1