如何将 zsh 更新到最新版本? [英] How do I update zsh to the latest version?

查看:125
本文介绍了如何将 zsh 更新到最新版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在 OS X 机器上的 Terminal.app 上成功切换到 zsh.zsh的版本号是4.3.11.

I recently switched to zsh on my Terminal.app on my OS X machine successfully. The version number of zsh is 4.3.11.

推荐答案

如果你安装了 Homebrew,你可以这样做.

If you have Homebrew installed, you can do this.

# check the zsh info
brew info zsh

# install zsh
brew install --without-etcdir zsh

# add shell path
sudo vim /etc/shells

# add the following line into the very end of the file(/etc/shells)
/usr/local/bin/zsh

# change default shell
chsh -s /usr/local/bin/zsh

希望能帮到你,谢谢.

这篇关于如何将 zsh 更新到最新版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆