mac的环境变量位置
/etc/profile
/etc/paths
~/.bash_profile
~/.bash_login
~/.profile
~/.bashrc
配置自定义全局命令方式一
最重要的就是alias这个命令
简化的系统命令
简化 ls -a
vim ~/.bash_profile
source ~/.bash_profile
效果
自定义的脚本文件
例如
vi test.sh
test=‘test.sh的文件位置’
配置好后source ~/.bash_profile
注意自定义的脚本要赋权限,给于root权限
效果