![]() It provides default config for ZSH (~/.zhrc file) and also provides themes and more features. “Oh My ZSH” is a plugin that runs on top of ZSH. usr/local/bin/zsh //correct Step 3- “Oh My ZSH” Test if we are using ZSH and the correct ZSH $ echo $0 You will be prompted to enter Mac’s password. It gets installed at /usr/local/bin/zsh PS: Mac’s default ZSH is at /bin/zsh brew install zsh Run the following command to install ZSH. If it doesn’t work, try xcode-select -r to reset. $ xcode-select -install Note: The above command opens up Mac’s installer and installs the XCode Developer CLI tools. So make sure to install the Xcode CLI tools by running the following command. XCode Developer CLI tools are used by various apps that manipulate core OSX features. If you don’t get the error, you can skip this step, because you already have it installed. If you get Command Line Tools for Xcode error, it means you haven’t installed the CLI tools for Xcode. Install Homebrew by running the following command.Ģ.Homebrew, simply said, is a command line installer for all sorts of software. This option is pretty common among users, because some of the plugins only work with the latest ZSH. Option 2- Install Homebrew and Install latest ZSH via Homebrew To test, open the Terminal and type the following, and it should say zsh. Enter the password and it will change the shell, upon logout and login.Ĥ. Open the Terminal (or ITerm2) and type the following command.Ģ.To use it, all we need to do is to change shell (chsh). However, sometimes it’s an older version of ZSH. Mac comes with a ZSH out-of-the-box, so we don’t need to install it. ![]() The following video shows why ZSH is better than just a bash shell. Although the steps are the same for both Terminal or ITerm2. When I mention “Terminal”, I mean ITerm2. The following video shows some of the new features of Item 2 (v3). It of course can run ZSH, Bash, and other shells inside it. It is similar to the Terminal, but has lots of features of its own. ![]() Enable “ligature” support so when you write an arrow =>, it appears like a real arr ow →Ī lot of programmers like ITerm2 instead of the default Terminal.Add two different Plugins using “Oh My ZSH” to improve productivity.Install different ITerm2 Schemes - These are just color schemes for the UI.Add two types of Themes using “Oh My ZSH” - some themes need extra steps so we will cover both.Install “Oh My ZSH “- This is a CLI tool to easily configure ZSH and add themes and plugins to ZSH.Install latest ZSH shell - This is more powerful than the regular bash shell.Install ITerm2 - This is a better alternative to the default Terminal.This may be confusing, so here is the summary of what we will be doing. But ZSH explained in this blog is more powerful stuff. If you want to just make your regular Bash Terminal powerful, take a look at my previous blog: “ Jazz Up Your Bash Terminal”. In this blog I’ll cover installing ITerm2, ZSH shell, “oh my ZSH”, Themes, ITerm2 color schemes, “oh my ZSH” plugins and enable “ligature” support to help create a beautiful and powerful Terminal. I will show you how to create triggers for the above keywords, you can modify the regex to match the keyword that is getting used in your application while printing logs.By rajaraodv Jazz Up Your “ZSH” Terminal In Seven Steps - A Visual Guide Usually, loggers in Java follow a pattern where for every error they print out “error” keyword in the logs and likewise “warn” for warning and “Fatal” if something terrible has happened □ So, you’ll be creating triggers for different regex patterns which are used in the logs. In iTerm, a trigger is an action that is performed when text matching any regular regex pattern is received in the terminal session. ![]() In this article, I’m going to show you a way by which you can grep the individual lines from the logs using regex pattern match and change the color of that line instantaneously. This is the best situation where colors play an important role. The moment when the live traffic is shifted to your servers and you sit there eagerly watching the logs roll off in speed, only one thing in your mind that no warnings and errors should go by unnoticed. Coloured logs are very helpful especially when you are going to deploy your application in production.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |