- Homebrew install aclocal sierra mac os x#
- Homebrew install aclocal sierra mac os#
- Homebrew install aclocal sierra update#
Added information about selecting the shell in Terminal Preferences. Left information about /etc/shells and chsh in as an aside. updated post to reflect more sure-fire way to set the zsh from the command line: use dscl. It’s a matter for another post, but if you like zsh and want some cool tools for it, check out Oh My Zsh!, an open source framework for managing zsh config.
Homebrew install aclocal sierra update#
If you upgrade brew using brew update or brew upgrade, it will inform you if there’s a problem with permissions on /usr/local.
Since this is where brew keeps its files, you’ll likely need to reset security on it by running the following command: sudo chown -R $(whoami):admin /usr/local Secondly, OS X El Capitan (v 10.11) has a new security system called “System Integrity Protection”, which is set up to be stricter with the security of /usr/local, among other things. There are a couple of considerations to keep in mind any time you upgrade OS X.įirst, your shell might get reset, so check it to be sure. I believe what this does is to store the selection within a plist file for that app, and ignore the user shell. iTerm 2 - Preferences, Profiles, General, Command.OS X Terminal - Preferences, General, “Shells Open With” and set the path to your preferred shell.You can also set the shell within your terminal app, though I haven’t tested this, and am not sure if there’s any negative aspect to doing so. The version 3 beta is especially good, as of April 2016. Get iTerm 2 if you haven’t got it already. Finally, check the name of the running process by doing echo $0. Next, try echoing an environment variable (case matters): echo $SHELL Now you can confirm which shell you are running with a couple of different commands.įirst, repeat the command you used above to confirm: dscl.
Homebrew install aclocal sierra mac os#
In standard linux, and in previous versions of Mac OS X, you would add a new shell like /usr/local/bin/zsh to /etc/shells, then use chsh -s /usr/local/bin/zsh to change to it.Įt voilà! The zsh that is first in your path is now the upgraded version from brew. Now if you run which again, you’ll see the system is recognizing the one you installed: which zshĪnd confirming the version again shows: zsh -version Open Users & Groups, ctrl-click your username, then select “Advanced Options”. create /Users/$USER UserShell /usr/local/bin/zshĪfter that, restart your Terminal to have it take effect. To use the zsh that brew installed, use dscl. Screenshot: Ctrl-click your username to get Advanced Options, to select your shell. Use the brew zsh Screenshot: Ctrl-click your username to get Advanced Options, to select your shell. usr/local/Cellar/zsh/5.0.7 (1084 files, 11M) *ĭisable the reading of Zsh rc files in /etc Cellar/zsh/5.0.7/bin/zsh-5.0.7īut you can also use brew commands to confirm the details about the package: brew listĪspell automake enscript gettext gsl114 libgpg-error mtr rsyncĪutoconf bazaar gdbm go jenv libksba pcre zsh ? /usr/local/Cellar/zsh/5.0.7: 1084 files, 11Mīrew install zsh 3.27s user 2.47s system 43% cpu 13.173 totalĪpple provides /usr/local for OS X users to install packages to and it’s already in your system path, so that’s where brew installs. => Pouring zsh-5.0.7.Īdd the following to your zshrc to access the online help: => Pouring gdbm-1.11.yosemite.bottle.2.tar.gz Upgrade zsh with brew Logo: Homebrew Logo: HomebrewĪssuming you have brew installed, use brew install zsh to install. , and it used to need to be edited to include any new shells, that you were going to change to using chsh. It seems that /etc/shells is used to specify allowable user shells for users connecting via It’s not necessary to view or append this file, if you’re setting your shell with dscl like we’ll do below. In a previous iteration of this post, I mentioned looking into /etc/shells to find out what shells your OS X knows about. is short for localhost, and the $USER variable expands to your username. OS X’s dscl command is a command line utility for performing operations on the Directory Services database.Ĭonfirm the shell that’s set for your user: dscl. Initial ConfirmationsĬonfirm the current active zsh version: zsh -version Here’s a couple of steps you need to do to make that your default.
Homebrew install aclocal sierra mac os x#
If the zsh shell that Apple provides in Mac OS X is out of date, as it has been in Yosemite and El Capitan, it’s trivial to install the latest version, available on homebrew.