[ Linux ] Linux 安装 oh-my-zsh

参照 CSDN 博主 FlowingRiver: https://blog.csdn.net/gloriaied/article/details/84645065

Step1 安装 zsh ,注意 zshoh-my-zsh 不是同一个软件

sudo yum install zsh

Step2 查看是否安装成功

zsh --version

Step3 安装 oh-my-zsh

(此处需要注意普通用户安装的 root 用户用不了,反之亦然,所以要想每个用户都用,请分别安装。)

curl方法

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

wget方法

sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

Step4 配置主题

sudo vim ~/.zshrc
# 将其中的 ZSH_THEME="xxxxxxx" 改成  ZSH_THEME="ys" 

主题很多,大家可以百度,网上大多推荐 ys 我比较喜欢 gentoo ====> 主题大全传送门

然后保存退出(这个……百度)

这个表示应用 ys 这个主题包,也可以用其他的主题包。

Step5 重启终端就可以看到主题已经变了

step6 使用 chsh -s /bin/zsh 命令改变默认终端为zsh

特别提醒:如果上述连接不能使用请使用下面的:

curl方法

sh -c "$(curl -fsSL http://git.oschina.net/yangchendong/oh-my-zsh/raw/master/tools/install.sh)"

wget方法

sh -c "$(wget http://git.oschina.net/yangchendong/oh-my-zsh/raw/master/tools/install.sh -O -)"
posted @ 2020-08-24 17:51  绎丶江忆南  阅读(314)  评论(0编辑  收藏  举报