- 显示和隐藏usr等隐藏文件文件
terminal输入:
bash
defaults write com.apple.Finder AppleShowAllFiles YES
defaults write com.apple.Finder AppleShowAllFiles NO
- 让
.bashrc
每次启动shell自动生效
编辑vim ~/.bash_profile
文件, 加上
bash
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
注意空格不能少, 然后 source ~/.bash_profile