You are not logged in.
At some point I did an upgrade on my server and must have not been actively watching the screen and moved on because now my environment path is wrong and shows:
-bash-4.1#Rather than what it normally did when I sudo su - my user account. My user path still looks normal however, just my root path is all jacked up. I scanned the forums and did really know how to search for this so I'm guessing it's been discussed but I'm not sure how to label this even.
Thanks for any info!
./
Offline
Do you still have
PS1='[\u@\h \W]\$ 'in your /root/.bashrc?
Post the file you use to configure the prompt (usually /root/.bashrc).
Last edited by karol (2010-12-22 16:01:51)
Offline
I don't have a '/root/.bashrc' at all but then I checked another Arch machine that is fully patched and working fine and it too doesn't have that file but the prompt for root looks normal. I don't understand.
[root@tuna ~]# ls -la
total 20
drwxr-x--- 2 root root 4096 Dec 13 08:38 .
drwxr-xr-x 23 root root 4096 Dec 21 09:00 ..
-rw------- 1 root root 6773 Dec 22 12:10 .bash_history
-rw------- 1 root root 3966 Dec 13 08:38 .viminfoI rebooted just to be safe and still my mail server was jacked up but my Arch workstation PC was fine. Neither had that file you mentioned.
./
Offline
Maybe just create that file. On my system it looks like this
[root@black ~]# cat .bashrc
# Check for an interactive session
[ -z "$PS1" ] && return
PS1='[\u@\h \W]\$ 'Where do you put all the bash customizations? /etc/bash.bashrc.local?
Offline
Where do you put all the bash customizations? /etc/bash.bashrc.local?
I don't put them anywhere. This is a very vanilla Arch Linux install. Where ever Arch defaults to is where it's at. I did what you suggested and it still looks messed up after a reboot:
[carlos@mail ~]$ sudo su -
Password:
-bash-4.1# cat /root/.bash
-bash-4.1# cat /root/.bashrc
# Check for an interactive session
[ -z "$PS1" ] && returnLast edited by Carlwill (2010-12-22 17:51:50)
./
Offline
So you do have /root/.bashrc but for some reason you don't have the line that defines the prompt. Just add
PS1='[\u@\h \W]\$ 'to your /root/.bashrc, save and source it.
Last edited by karol (2010-12-22 18:01:00)
Offline
Make sure you merge /etc/profile.pacnew ![]()
Offline