Now, that the required fonts have been installed. The single quotes are important! Restart VS Code after the config change. "": "'SourceCodePro+Powerline+Awesome Regular'" Edit VS code preference and set the following key value pairs: Installing a patched font will mess up the integrated terminal in VS Code unless you use the proper settings. → Natural Text Editing → Boom! □ Bonus: VS Code Terminal Config To enable these, go to "iTerm → Preferences → Profiles → Keys → Presets. Restart iTerm2 for all changes to take effect.īy default, word jumps (option + → or ←) and word deletions (option + backspace) do not work. Set this font in iTerm2 (iTerm → Preferences → Profiles → Text → Font), in the dropdown select the desired Font. Open the downloaded font and press "Install Font". Source Code Pro + Font Awesome, this one is needed if you want the icons from Font Awesome as shown in the screenshot for Powerlevel10k.To download the fonts visit the following links: Let's begin with installing the required fonts and enable them on iTerm2. Powerlevel10k is an update to the ever so popular Powerlevel9k with some improvements. Voila, now that we are done with the essential plugins let's go ahead and style our ZSH shell. zshrc file plugins = (git wd docker zsh-autosuggestions zsh-syntax-highlighting ) We will use git once again to clone the repository into our ZSH plugins folder git clone $ZSH_CUSTOM/plugins/zsh-syntax-highlighting This helps in reviewing commands before running them, particularly in catching syntax errors. It enables the highlighting of commands whilst they are typed at a zsh prompt into an interactive terminal. I really like the syntax coloring that comes with Fish, you can have similar syntax coloring on ZSH using the zsh-syntax-highlighting plugin. Reload the shell for it to take effect source ~/.zshrc zshrc file plugins = (git wd docker zsh-autosuggestions ) We can use git to clone the repository into our ZSH plugins folder git clone $ZSH_CUSTOM/plugins/zsh-autosuggestions The zsh-autosuggestions plugin gives you fast and Fish-like unobtrusive auto-suggestions for ZSH. Nevertheless, you can have similar auto-suggestions on zsh using the plugin zsh-autosuggestions. To install it, do the following plugins = (git wd docker )Īnother great alternate shell is fish, it comes with some next-level auto-suggestions for writing your terminal commands. The docker enables auto-completion for docker. To install it, do the following plugins = (git wd ) Wd (warp directory) is a neat plugin that lets us jump to custom directories in zsh without using a cd, as cd might be inefficient when the frequently visited directories have a long path. zshrc under the plugins section plugins = (git )įor it to take effect and reload your shell source ~/.zshrc The git plugin for ZSH provides many aliases and useful functions for git on ZSH. To install plugins we will use plugins section on the. This is the file in which we will be configuring plugins and themes for the shell. bash_profile file that we used for the Bash shell. You can do so by using CURL sh -c " $( curl -fsSL )". Oh-My-Zsh is essentially a framework to manage your ZSH configuration, is highly recommended to download and set it up. Now, to set ZSH as your default shell use the following command chsh -s /usr/local/bin/zshĪlternatively, for older Mac OS High Sierra and before you might want to run the following instead chsh -s /bin/zshįor configuring plugins and styling our shell we will be using Oh-My-Zsh. Alternatively, if you're on Linux following this guide, and if you're on Windows follow this guide. This should install the shell on your machine. If you're on a Mac like me, the easiest way to install the shell is through Homebrew through a single command: brew install zsh Since it is based on the same shell as Bash, the learning curve for the shell is fairly easier □. It adds multiple functionalities through support for multiple plugins and themes. ZSH, also called Z Shell, is an extended version of the Bourne shell (sh) that we are used to. To download iTerm2 on your Mac click here. So, whenever I do development I got multiple panes open for running my servers in split views and iTerm2 makes doing it a breeze with some very useful shortcuts. It is basically a much better terminal than the default one that comes out-of-the-box with Mac operating systems having some neat features like search, autocomplete, history, split panes, etc. I use iTerm2 as my default Terminal on the Mac. My Terminal Setup: iTerm2 + ZSH + Powerlevel10k.
0 Comments
Leave a Reply. |