1

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?

d-_-b
  • 1,134
  • 3
  • 13
  • 23

2 Answers2

4

Make any changes you need to make to /etc/skel. When you invoke useradd, 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

SmallClanger
  • 9,312
0

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 ~/.

Gopoi
  • 547