常用apps配置
pip
- 设置默认国内源 - Windows系统
1
2
3pip config set global.index-url 'https://pypi.tuna.tsinghua.edu.cn/simple'
pip config list
git
1 | git config --global user.name 'shenbo' |
scoop
设置 aria2 下载
1
2
3
4
5scoop config aria2-enabled true # default: true
scoop config aria2-retry-wait 8 # default: 2
scoop config aria2-split 8 # default: 5
scoop config aria2-max-connection-per-server 8 # default: 5
scoop config aria2-min-split-size] 2M # default: 5M设置 proxy
1
2
3scoop config proxy 127.0.0.1:9981
scoop config
npm
设置默认国内源
1
2
3
4
5npm config set registry https://registry.npmmirror.com/
# 或用 nrm
npm install nrm -g
nrm use taobao设置 proxy
1
2
3npm config set proxy http://127.0.0.1:9981
npm config list
ssh
- 防止长时间无操作,连接断开
在 C:\Users\XXXX\.ssh\config
,内容为:
1 | ServerAliveInterval 60 |
youtube-dl
- 设置默认下载目录
linux 系统: 修改/新建文件/etc/youtube-dl.conf
,
或~/.config/youtube-dl/config
,内容为:
1 | -o ~/Sync/ytb/%(title)s.%(ext)s |