View previous topic :: View next topic |
Author |
Message |
lumpy_bd n00b
Joined: 24 Sep 2004 Posts: 3
|
Posted: Fri Sep 24, 2004 4:34 pm Post subject: Creating a permanent global alias? |
|
|
Hi all.
Just installed Gentoo 2004.2 with gentoo-dev-sources-2.6.8 kernel. Got XOrg installed, and even got KDE up and running... not bad for a first timer eh?
One thing... when i type i get boring old grey text listing the contents of my folder. Now if i type things get a lot more funky; we got dark blue, light blue... we even got green!! Pretty colours (Yes, "colours; im not American )=A very happy me .
But... wait, here it comes... how do I make every act like an ?
I have tried using an alias: Code: | alias ls='/bin/ls --color=auto' | but that only works for the current terminal session that i'm in. If I change terminal, log out or reboot, I have to do it again. Is there any way to make it permanent across all terminals for all users?
P.S. I have tried adding Code: | alias ls='/bin/ls --color=auto' | to my /etc/conf.d/local.start file, to no avail... any other suggestions?
Cheers in advance
Brett |
|
Back to top |
|
|
joeljkp Guru
Joined: 06 Mar 2004 Posts: 316 Location: Starkville, MS, USA
|
Posted: Fri Sep 24, 2004 5:27 pm Post subject: |
|
|
Hmm... it sounds like you're using root to do this? Does it display colors as a normal user?
If you want 'ls' to act the same way for every user on the system, put your alias line in /etc/profile. That file gets read every time you open a new shell.
If you want to change it for a specific user, create (or edit) your ~/.bashrc file and put your alias line in there. I believe for normal users, there's already a good .bashrc in the home directory, so you can just edit that.
If you want an already-made .bashrc for root, copy it from /etc/skel to /root. _________________ Catch me on Jabber: joeljkp@jabber.org |
|
Back to top |
|
|
Minox Apprentice
Joined: 12 Apr 2004 Posts: 188 Location: Germany / Munich
|
Posted: Fri Sep 24, 2004 5:31 pm Post subject: |
|
|
Greetings,
check /etc/profile and run source /etc/profile; env-update
and ~/.bash_profile
and ~/.bashrc
Kind regards, _________________ proud to be 100% M$ free |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|