如何在Mac OSX上山狮升级Bash和设置正确的路径? [英] How do I upgrade Bash in Mac OSX Mountain Lion and set it the correct path?

查看:126
本文介绍了如何在Mac OSX上山狮升级Bash和设置正确的路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于山狮仍然使用旧的bash 3.x中,我在想,如果有一个很好的教程(如果有人能在这里发表一个)如何升级的bash到最新版本。此外,这将是有帮助的知道如何设置的路径,以便它可以在终端使用。

since Mountain Lion still uses the old bash 3.x, I was wondering if there is a good tutorial (or if somebody could post one here) on how to upgrade bash to the latest version. Also, it would be helpful to know how to set the path so that it can be used in terminal.

在此先感谢

推荐答案


  • 更新BREW: BREW更新

  • 安装庆典酿安装的bash

  • 添加的/ usr / local / bin目录/ bash的 / etc / shells中

  • 更改与默认的shell CHSH -s在/ usr / local / bin目录/ bash的

  • Update brew: brew update
  • Install bash with brew install bash
  • Add /usr/local/bin/bash to /etc/shells
  • Change the default shell with chsh -s /usr/local/bin/bash
  • 您通常不必改变终端或2的iTerm他们都默认任何设置为使用默认登录shell开辟了新的炮弹。

    You don't normally have to change any settings in Terminal or iTerm 2. Both of them default to opening new shells with the default login shell.

    这篇关于如何在Mac OSX上山狮升级Bash和设置正确的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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