记录一下自己常用的 Mac 操作配置。
1. 下载软件
- clashX https://github.com/clash-verge-rev/clash-verge-rev
- chrome
- 百度输入法
- Dropbox
- Typora
- Obsidian
1.1 常用软件
参考:https://www.liuvv.com/p/2e385ebc.html
- 微信
- bob
- ishot pro
- xmind
- 1password
- alfred
- wps
- charles
1.2 终端下载
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| https://github.com/alacritty/alacritty
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
brew install trash
brew install rg
brew install rclone
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
npm i -g czg npx czg --api-key=sk-P1xxxxxxx npx czg --api-endpoint="https://xxxxx.deno.dev/v1"
|
1.3 软件设置
2. 终端配置
2.1 设置ssh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| https://github.com/unix2dos/LevonConfig/tree/main/Config
sudo chmod 755 ~/.ssh sudo chmod 600 ~/.ssh/* sudo chown $USER ~/.ssh/*
cd workspace git clone git@github.com:unix2dos/LevonConfig.git
rm -rf ~/.ssh ln -s ~/workspace/LevonConfig/Config/ssh ~/.ssh
sudo chmod 755 ~/.ssh sudo chmod 600 ~/.ssh/* sudo chown $USER ~/.ssh/*
|
2.2 配置软链
1 2 3 4 5 6 7 8 9 10 11 12 13
| ln -s ~/workspace/LevonConfig/Config/vim/.vimrc ~/.vimrc
ln -s ~/workspace/LevonConfig/Config/alacritty/.alacritty.toml ~/.alacritty.toml
ln -s ~/workspace/LevonConfig/Config/git/.gitconfig ~/.gitconfig ln -s ~/workspace/LevonConfig/Config/git/.gitconfig-work ~/.gitconfig-work
mkdir -p ~/config/rclone ln -s ~/workspace/LevonConfig/Config/rclone/rclone.conf ~/.config/rclone/rclone.conf
|
2.3 tmux
1 2 3 4 5 6 7 8 9 10 11
| brew install tmux
cd ~ git clone https://github.com/gpakosz/.tmux.git ln -s -f .tmux/.tmux.conf
ln -s ~/workspace/LevonConfig/Config/tmux/.tmux.conf.local ~/.tmux.conf.local tmux source-file ~/.tmux.conf
|
2.4 zsh+plugin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| 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
ln -s ~/workspace/LevonConfig/Config/zsh/.zshrc ~/.zshrc
|
2.5 vim
1 2 3 4
| curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim :PlugInstall
|
2.6 fzf
1 2 3 4 5 6 7
| git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf ~/.fzf/install source ~/.zshrc
git clone https://github.com/Aloxaf/fzf-tab ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-tab
|
3. Mac 操作
3.1 触发角

3.2 密码修改为1位数
1
| pwpolicy -clearaccountpolicies
|
然后去系统偏好设置->用户与群组->修改密码
3.3 固定F1-F12
系统偏好设置->键盘->触控栏显示
3.4 最小化程序到应用图标
系统偏好设置->Dock->Mini windows into application icon
3.5 访达配置

4. 项目
4.1 blogs
1 2 3 4 5 6 7 8 9
| cd ~ && mkdir workspace && cd workspace git clone git@github.com:unix2dos/blog-readwrite.git git clone git@github.com:unix2dos/blog-liuvv.git
ln -s ~/workspace/LevonRecord/Config/goods-notify/.env ~/workspace/goods-notify/.env ln -s ~/workspace/LevonRecord/Config/goods-notify/build.sh ~/workspace/goods-notify/build.sh
|
4.2 obsidian
1 2 3 4 5 6 7 8 9 10
| ln -s ~/Dropbox/_Obsidian_ ~/workspace/Obsidian
cd workspace git clone git@github.com:unix2dos/Obsidian.git --depth=1 a.git
mv a.git/.git /Users/liuwei/workspace/.gitdir_Obsidian rm -rf a.git
|
4.3 多重备份
1 2 3 4 5 6 7 8 9 10 11
| ln -s ~/Dropbox/_backups_ ~/workspace/backups
cd workspace git clone git@github.com:unix2dos/_backups_.git --depth=1 b.git
mv b.git/.git /Users/liuwei/workspace/.gitdir_backups rm -rf b.git
|