yum -y install zsh
chsh -s /bin/zsh
echo $SHELL
yum -y install git
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
vi ~/.zshrc
chsh -s /bin/zsh
echo $SHELL
yum -y install git
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
vi ~/.zshrc
#修改文本
plugins=(
git zsh-autosuggestions
)
git zsh-autosuggestions
)
查看系统当前使用的shell
echo $SHELL
查看系统是否安装了zsh
cat /etc/shells
用yum安装zsh
$ yum -y install zsh
切换shell至zsh,代码如下:
chsh -s /bin/zsh
安装完不用reboot,logout一次就行啦~~
echo $SHELL
得到如此结果/bin/zsh,证明shell已经切换成功了。
下面开始安装oh-my-zsh
oh-my-zsh源码是放在github上的,所以先要安装git
4、安装git:
yum -y install git
5、安装oh-my-zsh:
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
如果显示如下界面表示成功:
__ __
____ / /_ ____ ___ __ __ ____ _____/ /_
/ __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \
/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / /
\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/
/____/ ….is now installed!
Please look over the ~/.zshrc file to select plugins, themes, and options.
p.s. Follow us at https://twitter.com/ohmyzsh.
p.p.s. Get stickers and t-shirts at http://shop.planetargon.com.
安装autosuggestions
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
vim ~/.zshrc
vim ~/.zshrc
修改文本
plugins=(
git zsh-autosuggestions
)
git zsh-autosuggestions
)
分类: 未分类
3 条评论
Kristel Haake · 2020年8月12日 下午5:30
I simply want to tell you that I’m very new to blogs and absolutely savored this blog site. Very likely I’m want to bookmark your blog . You certainly come with impressive article content. Regards for revealing your blog site.
Sid Petruska · 2020年8月15日 上午4:10
I simply want to mention I am new to blogging and site-building and absolutely enjoyed this page. Very likely I’m likely to bookmark your site . You certainly come with awesome article content. With thanks for sharing with us your web-site.
2condos · 2023年1月26日 下午2:42
2countryside