/etc/profile - environment variables

After copying the environment variables of nvm from ~/.bashrc to the /etc/profile file

And source /etc/profile can ensure that all customers are available

Variables set in the /etc/profile file are global variables. The .bashrc file (in the user's home directory) is only useful to the current user. ~/.bashrc, ~/.bash_file are the configuration information in the current user directory. After modification, use the source command to update

Guess you like

Origin blog.csdn.net/txl910514/article/details/131183116