zsh
zsh配置
sudo apt install zsh git curl -y
配置oh my zsh
sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
设置为默认终端
chsh -s /bin/zsh
几个推荐的插件
zsh -autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
内置插件
z
x
web-search
启用插件nvim ~/.zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting z extract web-search)
如果挂代理
# 为 curl wget git 等设置代理
proxy () {
export ALL_PROXY="socks5://127.0.0.1:1089"
export all_proxy="socks5://127.0.0.1:1089"
}
# 取消代理
unproxy () {
unset ALL_PROXY
unset all_proxy
}
nvim
备份原有文件
# required
mv ~/.config/nvim{,.bak}
# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}
下载lazyvim
git clone https://github.com/LazyVim/starter ~/.config/nvim
安装
nvim
删除包
rm -rf ~/.config/nvim/.git