安装 Zsh
Zsh 是一款比较强大的 Shell 软件,它在兼容 Bash 的同时还提供了一些更强大的功能。下面是 Zsh 在 Mac 和 CentOS 上的安装方法。 Mac 查看 Mac 上支持的所有 Shell 类型
Zsh
是一款比较强大的 Shell 软件,它在兼容 Bash
的同时还提供了一些更强大的功能。下面是 Zsh
在 Mac 和 CentOS 上的安装方法。
Mac
查看 Mac 上支持的所有 Shell 类型
➜ ~ cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
安装 oh-my-zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
CentOS
安装 zsh
yum -y install zsh
安装 oh-my-zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
安装后重启终端就可以进入 zsh
。