What would be the best way to get the same shell environment (paths excluded) on all my accounts automatically?
What I want is something that transfers the aliases, coloring, and other cool shiznit I have going on in my shell to other shells when I login. Is this possible? Do I have to copy my .bashrc file to all my accounts?
Make any changes you need to make to
/etc/skel
. When you invokeuseradd
, it'll copy the content of this folder into the user's home directory, automatically.http://www.linuxhowtos.org/Tips%20and%20Tricks/using_skel.htm
If you run bash yo can edit /etc/profile and /etc/bashrc. They are analog to the user ~/.profile and ~/.bashrc.
So put all your common vars in /etc and user more specifc in ~/.