Linux下:oh my zsh的安装与配置

安装

curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh 
这里写图片描述

当然也可以通过git下载 
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

配置

创建配置文件

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

设置zsh为默认的shell

chsh -s /bin/zsh

此时,zsh已经安装成功 
这里写图片描述

接来下,可以去https://github.com/robbyrussell/oh-my-zsh/wiki/themes 上下载一些zsh的主题,放置在 ~/.oh-my-zsh/themes 目录目录下,并在配置文件.zshrc中进行适当的配置。其实,默认情况下,themes目录下已有很多样式。 
这里写图片描述

默认情况下,使用的是robbyrussell主题 
这里写图片描述

ZSH官方网址:http://ohmyz.sh

猜你喜欢

转载自blog.csdn.net/qq_36561697/article/details/80989337
今日推荐