So I stumbled across svn color and thought it was something useful all our devs would appreciate. The read me for this says to put some code in your ~/.bash_profile
, but I'm wondering how I might include this globally on the server, so it's a default for everyone. Is there some global .bash_profile
I could add this to? Perhaps another way?
To include commands for all users on your system, use
/etc/profile
.From http://www.gnu.org/software/bash/manual/bashref.html#Bash-Startup-Files
Some distros also read
/etc/profile.d/*
by default, and you can put your customizations there. See http://bash.cyberciti.biz/guide//etc/profile.dAlready answered, but thought this might be helpful to others looking.
On Amazon Linux
/etc/profile
states:With that in mind, I created a
bash_profile.sh
in/etc/profile.d/
.In that file, I added
export PS1=" insert_desired_bash_profile_options "
Don't forget that a logout/in is probably required to pick up the changes.