1.zsh介绍
Z Shell或zsh是一种交互式的UNIX shell和功能强大的脚本语言(包括shell脚本)的命令行解释器。 Zsh自1990年以来由“Paul Fastad”开发,而“zsh”绰号源自耶鲁大学教授宗绍。Zsh 兼容 Bash,Bash的命令在Zsh 上都能使用。
zsh有很多强大的功能,这里就不一一介绍了。
2.安装zsh
apt-get install zsh
安装完毕以后,你需要将zsh替换为你的默认shell,输入下面命令进行替换:
chsh -s /bin/zsh
重启终端后进入zsh
3.安装Oh My Zsh
官网介绍:Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration. It comes bundled with thousands of helpful functions, helpers, plugins, themes, and a few things that make you shout.
oh-my-zsh是基于zsh的功能做了一个扩展,方便的插件管理、主题自定义,以及漂亮的自动完成效果。
使用如下命令进行安装:
sh -