玩云服务器时想装一个 neovim 的插件,因为 Centos 8 已经不维护了,然而我要用的 neovim 一直在更新用到了glibc,不能直接安装,然而他又是linux一个底层的玩意,只能编译安装,
然后就把系统搞崩了,命令全部用不了,我看了网上的 恢复教程 有点困难,直接重置得了。
于是乎顺手记录一下安装基本插件的过程
提前总结一下
基本上能用yum就用yum,不行就去官方找对应操作系统的安装方式,实在不行再自己编译安装(最好提前拍个快照)。
一些常用的脚本、命令、工具:
yum 源更换
1 2 3 4
| cd /etc/yum.repos.d //进入/etc/yum.repos.d目录 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo yum -y clean all //清除所有文件 yum -y makecache //建立缓存
|
nvm (node版本管理)
1
| curl -o- https://ghfast.top/https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
|
zsh
1 2 3 4
| yum install zsh
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
tmux
zsh-plugin
1
| git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
1
| git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|