跳转至

使用建议

自定义终端

使用 Zsh 搭配 Oh My Zsh 作为终端程序。

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

SSH 配置文件

可以使用 SSH 配置文件简化日常指令,并转发本地密钥

.ssh/config
Host alfa
    HostName alfa.iiis.io
    Port 8789
    ForwardAgent yes
ssh alfa

镜像加速

使用 TUNA 镜像站加速网络请求。

pypi

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

代理

不同软件需要分别设置代理。

shell

export http_proxy=socks5h://127.0.0.1:1080
export https_proxy=socks5h://127.0.0.1:1080
export all_proxy=socks5h://127.0.0.1:1080

git

git config --global http.proxy socks5h://127.0.0.1:1080
git config --global https.proxy socks5h://127.0.0.1:1080

实用工具

bat

mkdir -p ~/.local/bin
ln -s /usr/bin/batcat ~/.local/bin/bat

fuck

pip install thefuck

TBD