![]() ![]() Next, let’s install a few of the plugins that make zsh so much better than bash. echo /usr/local/bin/bash | sudo tee -a /etc/shells Since we don’t run the command for actually changing the shell afterward, adding it to /etc/shells has no effects at all. While we’re at it anyway, we can add that new version to /etc/shells, too, just in case you want to go back to bash some day. Like zsh, the pre-installed version of bash is pretty outdated, so we should install our own version of bash for the same reasons as above: brew install bash Keeping bash up-to-date, too, thus seems like a good idea. Just because you aren’t using bash anymore does not mean that it’s not used anymore at all. That’s because various processes still use bash in the background. The reason is that during the execution of some commands such as brew update you will see that the job name in the title bar of the terminal window changes from zsh to bash. 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: The oh-my-zsh framework comes with thousands of helpful functions, helpers, plugins, and themes.In this article I’m going to show you how you can vastly improve your terminal. zsh and oh-my-zshĪlso known as Z Shell, this is a shell similar to Bash, however it becomes infinitely more powerful when using the oh-my-zsh framework. By default you probably have Bash ( Bourne Again Shell) installed, which essentially passes commands that you type to your computer to execute. Shells □Įver wondered the difference between bash and zsh? When you open your command line you run a shell, which is essentially just a program. You might also like: The 20 Best Atom Packages for Front End Developers. ![]() Universal package manager used to install and manage software packages written in Python Simply follow the global installation instructions for the package manager of your choice. To install most of the tools that help customize your terminal, you’ll want to install a package manager, which will make installing new packages much easier. You might also like: The 25 Best Sublime Text Plugins for Front End Developers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |