I didn't realise until very recently that Bash shipped with Yosemite is a rather old version - 3.2, given that Bash 4 has been around for quite some time. I then installed a new version through Homebrew and configured it as my login shell.
During my brew search for the new bash, two more items drew specific attention of mine - bash-completion and bash-git-prompt. I've always liked it when I typed "git checkout ma" and pressed Tab, "git checkout master" got filled out. Somehow it wasn't working that way in my Mac, until bash-completion started doing business.
Bash-git-prompt is also a nice piece of software that configures the shell prompt to display git related info (branch, status, etc), when working in a git repository of course.
没有评论:
发表评论