![]() So now that we’ve successfully made the switch to zsh, the next step might seem superfluous at first-we’re going install a current version of bash, too. You might have to close the terminal and re-open it for the changes to take effect. chsh -s /usr/local/bin/zshĬhecking the title bar of Terminal.app confirms that you’re now using zsh instead of bash. To actually use it though, we still need to explicitly tell the system so. With this command, we’ve only made the new shell available to the system. All you need to do is to run this command: echo /usr/local/bin/zsh | sudo tee -a /etc/shells Sounds complicated, but is really simple. sh -c "$(curl -fsSL )"īefore you can actually start using this newly installed version of zsh, you first need to add it to the list of known shells, which is located at /etc/shells. Next, we’re going to install Oh-My-Zsh, a great framework for zsh that really simplifies the configuration and also includes a couple of cool themes for the prompt. Once you’ve installed Homebrew, you can install the most recent version of zsh via this command: brew install zsh Go read that post first and come back here afterward. In case you don’t know what Homebrew is, I covered it in-depth in a previous blog post. Thus you should know how to use Homebrew before you continue reading. That version will be easier to maintain and works much better with the rest of your software. We’re going to install our own version of zsh instead, using a tool called Homebrew. As with most other pre-installed software, however, this system-provided version of zsh is pretty outdated and shouldn’t be used. You can verify that by entering which zsh into your Terminal. Like many other system programs, the Z shell is already installed on your Mac by default. Then, we will replace Apple’s stock terminal emulator Terminal.app with the more powerful iTerm2 and change the terminal’s appearance with a nice color scheme. To simplify the configuration process we’re going to add the configuration framework Oh-My-Zsh on top of the Z shell. We’ll accomplish that by switching the shell from the default shell Bash to the much more powerful and customizable Z shell. We’ll start with the default terminal shown in the first screenshot and enhance it so that it looks something like the terminal shown in the second screenshot: In this article I’m going to show you how you can vastly improve your terminal. ![]()
0 Comments
Leave a Reply. |