Suggest using .login/.profile to set environment variables, not
.cshrc/.bashrc/.zshrc/.shrc
This commit is contained in:
parent
5a93db29f7
commit
6c375dc99a
@ -114,10 +114,9 @@ the environment variable HTTP_AUTH to 'basic:*'.
|
||||
%
|
||||
You can permanently set environment variables for your shell by putting them
|
||||
in a startup file for the shell. The name of the startup file varies
|
||||
depending on the shell - csh and tcsh uses .cshrc, bash uses .bashrc, zsh uses
|
||||
.zshenv, ksh uses .kshrc, and the Bourne shell (/bin/sh) uses .profile (and
|
||||
through a little bit of trickery in .profile also .shrc)
|
||||
Other shells will often also read .profile
|
||||
depending on the shell - csh and tcsh uses .login, bash, sh, ksh and zsh use
|
||||
.profile. When using bash, sh, ksh or zsh, don't forget to export the
|
||||
variable.
|
||||
%
|
||||
If you are running xterm, the default TERM variable will be 'xterm'. If you
|
||||
set this environment variable to 'xterm-color' instead, a lot of programs will
|
||||
|
Loading…
Reference in New Issue
Block a user