You are not logged in.
Pages: 1
How do I get root to recognize my home directory's .bashrc? I want it to read that so I can color the root BASH prompt and have access to aliases.
Any help would be most appreciated.
Arch = Debian + Gentoo + Bleeding edge software - annoyances.
Offline
make a symbolic link from /home/n00body/.bashrc to /root/.bashrc
Greets
dojo
Offline
As root, do
cp /home/<user>/.bashrc /root
Offline
Neither one worked.
Arch = Debian + Gentoo + Bleeding edge software - annoyances.
Offline
Log out and log in again.
Offline
I know!
Don't run as root, just use sudo. Problem solved.
Offline
Loggin out didn't work either.
Arch = Debian + Gentoo + Bleeding edge software - annoyances.
Offline
I know!
Don't run as root, just use sudo. Problem solved.
Then how do you make sudo use your aliases, i've got
alias emacs='emacs -nw'
both in /home/user/.bashrc and /root/.bashrc... it works well when i just type emacs in a console, but sudo emacs starts emacs with its ugly gui (although starting emacs after typing sudo -s works the way i want it to)
It's the same with with ls too, try and compare ls to sudo ls
Offline
Fixed it. I kept making the mistake of putting it in / instead of /root/. I keep getting the two confused.
Arch = Debian + Gentoo + Bleeding edge software - annoyances.
Offline
Pages: 1