记录一下常用的mac操作配置。
1. 操作
1.1 触发角
1.2 密码修改为1位数
1 | pwpolicy -clearaccountpolicies |
然后去系统偏好设置->用户与群组->修改密码
1.3 显示隐藏文件
1 | defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder |
1.4 固定F1-F12
系统偏好设置->键盘->触控栏显示
1.5 最小化程序到应用图标
系统偏好设置->Dock->Mini windows into application icon
1.6 访达配置
2. 配置
2.1 前置软件
- 下载dropbox和typora
- 设置git
1 | git config --global core.quotepath false |
2.2 ssh配置
1 | ln -s ~/Dropbox/_多重备份_/5\ LevonConfig/Config/ssh ~/.ssh |
2.3 下载仓库
1 | cd && mkdir workspace && cd workspace |
2.4 vim插件
1 | ln -s ~/Dropbox/_多重备份_/5\ LevonConfig/Config/vim/.vimrc ~/.vimrc |
2.5 zsh+tmux
下载Alacritty
安装brew
1
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
安装zsh + tmux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15# 安装ohzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# 下载安装特殊字体
https://github.com/romkatv/powerlevel10k#meslo-nerd-font-patched-for-powerlevel10k
# 安装tmux
brew install tmux
cd ~ && git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf配置
1
2
3
4
5ln -s ~/Dropbox/_多重备份_/5\ LevonConfig/Config/zsh/.zshrc ~/.zshrc
ln -s ~/Dropbox/_多重备份_/5\ LevonConfig/Config/tmux/.tmux.conf.local ~/.tmux.conf.local
ln -s ~/Dropbox/_多重备份_/5\ LevonConfig/Config/alacritty/.alacritty.yml ~/.alacritty.yml
tmux source-file ~/.tmux.conf
3. 软件
3.1 rm 删除到垃圾桶
1 | brew install trash |