MacOS优化使用体验

一些不太常见但可能有用的工具/配置,比较主观。

默认加载 & 取消zsh提示

m1 mac带的系统默认zsh,如果使用bash的话每次打开都会有提示,在.bash_profile中设置即可
并且默认加载的也是.bash_profile,所以可以加一行.bashrc

1
2
export BASH_SILENCE_DEPRECATION_WARNING=1
source .bashrc

bash无高亮

1
2
3
4
5
export CLICOLOR=1
export LSCOLORS=ExGxFxdaCxDaDahbadeche
alias grep='grep --color'
alias egrep='egrep --color'
alias fgrep='fgrep --color'

加入到.bashrc即可

windows风格的 alt-tab

brew install –cask alt-tab

运行配置即可

代替command+tab

代替command+`

可以实现跨桌面应用内切换