zsh
zsh 简介
zsh 是一个专为交互式使用而设计的 shell,尽管它也是一种强大的脚本语言。 bash,ksh 和 tcsh 的许多有用功能都被合并到 zsh 中; 添加了许多原始功能。

zsh 安装
macOS
使用 Homebrew 安装
brew install zsh zsh-completions
要将 zsh 设置为默认 shell,请对 macOS High Sierra 执行以下操作
chsh -s /bin/zsh
macOS 的大多数版本默认提供 zsh,也可使用 MacPorts 安装
sudo port install zsh zsh-completions
Ubuntu, Debian & derivatives (Windows 10 WSL | Native Linux kernel with Windows 10 build 1903)
apt install zsh
OpenSUSE
zypper install zsh
Arch Linux
pacman -S zsh
Void Linux
xbps-install zsh
Fedora
dnf install zsh
OpenBSD
To install the package:
pkg_add zsh
FreeBSD
To install the package:
pkg install zsh
To install the port:
cd /usr/ports/shells/zsh/ && make install clean
To reduce memory usage, optionally enable zsh-mem options with
1 | make config |
before running “make install”.
Centos/RHEL
1 | sudo yum update && sudo yum -y install zsh |
Solus
1 | eopkg it zsh |
Funtoo/Gentoo
emerge app-shells/zsh
Alpine Linux
1 | apk add zsh |
oh-my-zsh

安装
oh-my-zsh 通过在终端中运行以下命令之一来安装的。 您可以通过命令行使用 curl 或 wget 安装它。
通过 curl
1 | sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
通过 wget
1 | sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
其他
详细使用、主题等见oh-my-zsh的文档说明