5

【笔记】MacOS环境变量优先级

 1 year ago
source link: https://loli.fj.cn/2023/04/16/MacOS%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E4%BC%98%E5%85%88%E7%BA%A7/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【笔记】MacOS环境变量优先级

2023-04-16

MacOS环境变量PATH优先级

查看环境变量PATH

echo $PATH

Mojave 10.14 及以下配置文件加载顺序

  • /etc/profile/->/etc/paths->/etc/bashrc->~/.bash_profile->~/.bashrc

Shell历史

  • ~/.bash_history

Catalina 10.15 及以上配置文件加载顺序

  • /etc/profile/->/etc/paths->/etc/zshrc->/etc/zshrc->~/.zsh_profile

Shell历史

  • ~/.zsh_history

CSDN——Action_Wang
简书——TangFly


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK