Linux下zsh配置

Linux下zsh配置

zsh 是Linux下执行终端时bash的一个替代品,我使用它的主要原因是—颜值高

安装

1
2
3
4
#install zsh
user@computer:~$ sudo apt-get install zsh
#instead bash
user@computer:~$ chsh -s /bin/zsh

配置

安装oh-my-zsh

1
user@computer:~$ curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh

创建一个新的zsh配置文件

1
user@computer:~$ cp .oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

进行配置

1
user@computer:~$ vim ~/.zshrc

这里只介绍主题的修改,更多的主题可以在下面的网址中进行挑选
https://github.com/robbyrussell/oh-my-zsh/wiki/themes
zsh_config.png
配置好后关闭terminal重新打开,是不是感觉炫酷了很多

Donate comment here