But what we want is iTerm default opens in Zsh. Now, after all configuration, the biggest pain is you have to open the terminal, change to tmux and then start zsh and then do work. One good link to get started I guess is this. Just like zsh, tmux is also something I have been using for some time and helps me maximise my productivity.Īfter that, you need to configure your tmux to make it comfortable for your key bindings. It also allows you to split your window into different panes, hence allowing you to do a lot more in a single window. Tmux is basically a terminal multiplexer allowing you to create and access different terminal sessions within a single window. Here is a complete documentation and available template links. ![]() ![]() Once you have installed, you can open the ~/.zshrc file to add plugins like git, change themes and modify stuff. The amount of already present templates is just huge.Įxecute this in your terminal to get Oh-my-zsh: sh -c "$(curl -fsSL )" It can be used to customize and show a lot of information according to your will. It makes your life much more easier by showing a lot more information in your shell especially when you are using git. If you felt Zsh increases your productivity and takes your command line experience to a whole new level, wait till you have used Oh My Zsh. Oh My ZshĪ big shoutout to Robby Russell for creating this gem. So, to install ZSH in your Mac, all you do is: Once you have it installed, you can run the command zsh to start the Z Shell. I feel Z shell increases productivity a lot, but personal opinion. I have been using Z Shell for quite some time and have been used to the commands and ways so much, it is a little difficult to use bash. All you need to do is unzip and put it into Applications folder and you are ready to use it. You can download and unzip iTerm2 from here. The main reason is it comes with more customising options and better color support more than anything else. So the very first step is to forget using the default terminal, and use iTerm2. The very first question was "Is the default terminal of Mac good?" Well, it's good enough, but most of the digging into led me to the same answer - Use iTerm2. So, when I started using a Macbook, the first question (apart from when to use CMD and CTRL) was which terminal and how to set it up with zsh and tmux. Here I am going to talk mainly about the terminal (yes, I am just gonna call that throughout). I’ve written another article on how to setup NVM on your system to switch and maintain multiple Node.js installations easily.Being a linux user for most part of my developer life, the most important thing of my life is the terminal (or shell or command line or console or whatever you want to call it) followed by text editor. Now you’ve installed and configured a good starting point. It’s worth reading the description for each plugin, because you may end up with being even more productive. So take a minute and read through the descriptions of those plugins before enabling them. ![]() Plugins can either extend the auto-completion tab, create new key bindings or create new aliases within your terminal. zshrc file and look for plugins=(), once you find that line, list all plugins you want to use within the braces as shown here: plugins=(git bower sublime brew history node npm sudo web-search). I use only a few plugins to keep things simple. To enable them, you’ve to list them inside of your. By default, those plugins were not enabled. Their documentation on GitHub is listing which plugins were currently part of the release. OH-MY-ZSH ships with support for plugins. I’ve chosen 11pt as font-size for my setup, so apply PowerLine for Regular Font and Non-ASCII Font by clicking each Change Font button and select the PowerLine font. You can download the font from here, install this font on your system and then apply it in iTerm2 through For example, it’s displaying branches in the following way Powerline font is responsible for bringing some kind and helpful icons to the terminal. After installation has finished open ~/.zshrc in any editor and set the theme for ZSH ZSH_THEME="agnoster".
0 Comments
Leave a Reply. |