所以我偶然发现
svn color,并认为这是我们所有开发人员都会欣赏的有用的东西.为此我读了一下说在〜/ .bash_profile中放了一些代码,但是我想知道如何在服务器上全局包含它,所以这是每个人的默认值.是否有一些全局.bash_profile我可以添加这个?也许另一种方式?
要为系统上的所有用户包含命令,请使用/ etc / profile.
从http://www.gnu.org/software/bash/manual/bashref.html#Bash-Startup-Files起
When Bash is invoked as an interactive login shell,or as a
non-interactive shell with the –login option,it first reads and
executes commands from the file /etc/profile,if that file exists.
After reading that file,it looks for ~/.bash_profile,~/.bash_login,
and ~/.profile,in that order,and reads and executes commands from
the first one that exists and is readable.
默认情况下,某些发行版也会读取/etc/profile.d/*,您可以将自定义设置放在那里.见http://bash.cyberciti.biz/guide//etc/profile.d