Mac 专题
优化
删除重定向废纸篓
Mac 执行 rm 命令直接删除文件,可以使用 trash 将删除命令重写为移动到废纸篓
brew install trash
# vim ~/.bash_profile
alias rm="trash"
# source ~/.bash_profile
ls command not found 问题
在linux下习惯使用ll、la、ls等别名的命令,到mac os提示command not found,需要重新添加别名。
- 修复方法,在
~/.bash_profile 中添加如下内容
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
并执行:
source ~/.bash_profile
禁止 Mac 自动更新
## Mac Software Update (sysin)
127.0.0.1 swdist.apple.com
127.0.0.1 swscan.apple.com
127.0.0.1 swcdn.apple.com
127.0.0.1 gdmf.apple.com
127.0.0.1 mesu.apple.com
127.0.0.1 xp.apple.com