centos安装zsh及其插件

dnf install util-linux-user -y
yum update && yum install -y zsh git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
chsh -s $(which zsh)
sed -i '/^ZSH_THEME=/c\ZSH_THEME="ys"' ~/.zshrc
source ~/.zshrc
git clone https://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-completions $ZSH_CUSTOM/plugins/zsh-completions
[ -z "grep "autoload -U compinit && compinit" ~/.zshrc" ] && echo "autoload -U compinit && compinit" >> ~/.zshrc
sed -i '/^plugins=/c\plugins=(git sudo z zsh-syntax-highlighting zsh-autosuggestions zsh-completions)' ~/.zshrc
source ~/.zshrc

给TA打赏
共{{data.count}}人
人已打赏
Linux

history命令显示时间

2022-12-6 15:05:21

Linux

半小时搞会 CentOS 入门必备基础知识

2022-12-6 15:37:04

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
搜索