![]() Easier to customize - probably one of the most unique features of Zsh is its customizability.Recursive path expansion - there is also no need to type the whole path, for example, cd us/b/l will expand to cd user/bin/lin.Automatic cd - there is no need to type cd every time you wish to change a directory, just type the path to the desired directory.Built-in auto-correction - if you tend to type fast and make a lot of typos along the way, Zsh will fix them for you, without the hassle of running external scripts or installing additional plugins.Navigating through auto-complete suggestions is much more user-friendly and intuitive. Better auto-complete - Zsh has arguably much better auto-complete than Bash.On top of that, Zsh comes with a lot of nice capabilities that could make it a better choice over Bash such as: More specifically, Zsh can actually run a lot of Bash scripts without any problems. In this section, we'll cover some advantages of using Zsh.Īs we've stated before, both Zsh and Bash are developed from the same shell and have a lot of similar features. There are definitely some upsides and downsides of choosing either one and your personal preference will likely play a large part in the decision. ![]() Obviously, there is no clear way of deciding which shell is ultimately better and should be used all the time. That's why most casual Bash users often hesitate to switch to Zsh, even though Zsh has some advanced features that make it worth considering. Although Zsh was created back in the 1990s, it has been gaining a lot of popularity in the last few years, especially since Apple announced that they will be using Zsh as the default shell on all of their new systems running macOS.īoth Bash and Zsh were created around the same time and are both based on the Bourne shell, the default UNIX shell at the time. Zsh, also known as Z shell, is another shell for UNIX-based systems, frequently used as an alternative to Bash, the default shell on a lot of UNIX-based systems. Now your prompt with git info should look like the following.Let's start with the basics! What Is Zsh? ![]() However, the way that git_prompt_info will show us the information is defined by the following code snippet ZSH_THEME_GIT_PROMPT_PREFIX="%)" 5th part: “ $(git_prompt_info)” indicates that the basic info of git SCM of the current directory will show just after a white space from the current directory like the following: ![]() Now open ~.zshrc file and put the following line ZSH_THEME="mrp"ĥ. zsh-theme (in my case I named the file as mrp.zsh-theme) and copy-paste the content of robbyrussell.zsh-theme to our customer. iterm2 (or any other terminal emulator that supports 24 bit color or true color) installedĪfter doing the all the things in previous prerequisite section go to the following directory cd.So I have tried modifying it to my likings. Don’t get me wrong, many of you may need that information for your workflow but in my case, I don’t need that.Īlthough I like the simple approach I want something that I can tell that "this is mine". Like the full path of my current directory. I liked the look and feel, it doesn’t bombard me with a bunch of information that according to my preferences I don’t need. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |