Mac终端初始化脚本


Mac默认是bash,但似乎不支持.bashrc,它有自己的文件,那就是.profile。

# create .profile
touch ~/.profile
vi ~/.profile
# sample content in .profile
export http_proxy=proxy.of.mycorp.com:80
export https_proxy=proxy.of.mycorp.com:80
export no_proxy=10.*,*.mycorp.com,localhost

Leave a Reply

Your email address will not be published. Required fields are marked *