Search for the font you want to use and click on it. Select the text tab and click on the Change font button. Open up the iterm settings by pressing cmd +, and navigate to the profile you created. Now we need to select this font in iterm. If you are on Mac double click it and then press install font. otf file, so simply click on it and then click download. I will be using inconsolata in this example. Navigate here and click the name of a font. Luckily we can use patched fonts that can support these "symbols" and they are free. You will also probably notice that there are some question-mark symbols and thats because the font in our terminal does not support them. You should now have a changed prompt theme looking like this. Now, reload the zsh config file by either opening a new tab, re-opening iterm or running the following command So, in order to use the theme Wes Bos created we need to paste the cobalt2.zsh-theme file in that folder. Zsh looks for themes in the themes directory under /Users//.oh-my-zsh/themes/. You can change the theme by replacing the name. In that file, you should find a ZSH_THEME="robbyrussell" line of code. I will be using Visual Studio Code but you can use your favorite text editor. zshrc and it can be found in your root directory. In general, the configuration for the zsh shell is a file called. Wes Bos also created a prompt theme which is also supplied in the same repo as the iterm theme. So, the part that you can customize in terms of applying a theme is the prompt. These are also called themes but do not confuse them with iterm themes. Remember when you first installed oh-my-zsh that the prompt changed? Well, there are a lot of various ways to "style" the prompt and a lot of open source ones. The new tab should look something like the following. Then from the same dropdown select the theme you just loaded.Īll you need to do now, is close settings and re-open iterm or press cmd + t to open a new terminal tab. Navigate to the extracted folder for the theme you want and choose the file that ends in. Now, to apply the theme you want, you need to click the colors tab and in the color presets dropdown selected import. Next, with your profile selected, click the other actions button and click set as default. You can name this profile whatever you want. Navigate to profiles and create a new profile. If you are following along, download the repo from WesBos, extract it and open up iterm. There are a ton of themes for iterm which you can use but I will be using the one Wes Bos created. One of the popular ones is iterm2 and its the one that I will be using here. In order to customize the feel and look of your terminal, you need to install a terminal that can support theming. Sh -c " $( curl -fsSL )" Customizing the themeĪfter successfully installing zsh on your computer you should notice a change in your prompt, adding colors and the git branch (if you are in a project using git) like shown below. You can run the following command to one-click install zsh and oh-my-zsh So people went a step further and developed a "framework" on top of zsh, called oh-my-zsh which can extend the zsh shell even further with functionality such as plugins and themes among other things. So Zsh on the other hand, is superior in many places including but not limited to - more robust auto-completion, easier path traversing, support for git commands completion out of the box etc. What I mean by that, is you can't easily add plugins, themes and by default it's features are limited. While bash is great at what it does, it can become a bit limited in terms of configuration. If you are on mac (and some linux OSes) the default shell is bash. If you prefer to watch the course you can do so here. So basically this article is all about what I have learned from watching that course. Having been familiar with Wes Bos before and his top courses, I thought of giving it a try. Upon googling stuff, I came across a course by WesBos with the title Command line power user. Recently, I have been playing around with my terminal and trying to learn it better and make the most out of it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |