New MacOS 初始化
自用
# 安装homebrew
/bin/bash -c `curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh`
# 设置代理脚本 见
# https://juejin.cn/post/7002470695368294407
vim ~/.proxy-switch.sh
echo "脚本" > ~/.proxy-switch.sh
echo 'alias sw="source ~/.proxy-switch.sh"' > ~/.zshrc
source ~/.zshrc
sw -bash
# 安装zsh 和相关主题,这里选择的是 oh-my-zsh
# 安装必要软件
brew update
# 开发
brew install git node python3 python3-pip
# 工具 the_silver_searcher 用于ag搜索
brew install neofetch the_silver_searcher
# 安装 aria2
brew install aria2
# 配置
cd ~
mkdir .aria2
cd .aria2
touch aria2.conf
vim aria2.conf
➜ Downloads cat ~/.aria2/aria2.conf | grep -Ev '^$|^#'
enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
max-concurrent-downloads=5
continue=true
max-connection-per-server=5
min-split-size=10M
split=10
max-overall-download-limit=0
max-download-limit=0
max-overall-upload-limit=0
max-upload-limit=0
dir=/Users/zendu/Downloads
file-allocation=prealloc
# 启动aria2
aria2c --conf-path="/Users/xxxxxx/.aria2/aria2.conf" -D
# 直接从链接下载文件
aria2c https://code.visualstudio.com/sha/download\?build\=stable\&os\=darwin-universal
# 从文本中下载文件
aria2c -i bilibili.txt -o 请把我埋在这时光里.flv
安装必要软件
- Google 浏览器
- Google Driver 云盘
- VsCode 编辑器
- Spectacle 分屏工具
- Alfred 搜索和历史剪切板工具
- iShot 截图
- 柠檬清理