/ zsh

zsh

iTerm2 + zsh + oh-my-zsh + agnoster

zsh

# 查看当前 shell
echo $SHELL
# 查看可用 shell
cat /etc/shells
# Make it your default shell
chsh -s $(which zsh)
# Log out and login back again to use your new default shell.
echo $SHELL
# Expected result: /bin/zsh

step1. 安装zsh

# macos
brew install zsh

brew cask

# brew cask install 安装GUI程序
brew cask install iterm2

step2.Install oh-my-zsh

调整主题

~/.zshrc 主题设置为 agnoster

安装Meslo-Powerline字体

  • Downloads
  • 点击安装
  • iTerm2 中调整字体为 Meslo-Powerline

Debian

# 首先安装 zsh
sudo apt-get install zsh

# Make it your default shell
sudo chsh -s $(which zsh)

# 输入密码后,注销,重新登录即可

然后再安装 oh-my-zsh

.bashrc 的一些额外的内容粘贴到 .zshrc