5/25/2023 0 Comments Install iterm2![]() Every time you type something, you get a suggestion in grey. To access this, run the commandĪdd the plugin to the plugin section of the config file ~/.zshrc shown belowĪnother very useful plugin is zsh-autosuggestions. oh-my-zsh > custom > plugins directory to view the cloned directory. To add more, for instance, docker, auto-suggestion, syntax highlighting and more: Oh My ZSH comes preloaded with a git plugin. Okay - well done, we are down with the basic settings. In this scenario, I activated Batman which is my preferred color scheme. ![]() Navigate to the schemes folder and select your preferred color schemes to import them.Ĭlick on a specific color scheme to activate it. Navigate to iTerm2 > Preferences > Profile > Colors > Color Presets > Import Then, extract the downloaded folder cos what we need resides in the schemes folder. Navigate to iTerm2-Color-Schemes and download the ZIP folder. Let’s change the color scheme to bring out the beauty of our terminal. For fonts that support ligatures like FiraCode, check the “Use ligatures” option to view your arrows and other operators in a stylish manner like ( → ). Now, you can see Inconsolata listed as one of the fonts. To change the font, navigate to iTerm2 > Preferences > Profiles > Text > Change Font. Get your preferred font out of these powerline fonts. You guessed it, we now need to install that. The selected theme in this scenario requires powerline fonts. Navigate to iTerm2 > Preferences > Profiles > Colors if you wish to change the background color of the terminal. Update your changes by running the command Or an even better solution and easy to configure is to runīrew install romkatv/powerlevel10k/powerlevel10kĮcho "source $(brew -prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme" >~/.zshrc Git clone ~/.oh-my-zsh/custom/themes/powerlevel10k Git clone ~/.oh-my-zsh/custom/themes/powerlevel9k In this scenario, we’ll install powerlevel9k, To install another theme not pre-installed, clone the repository into custom/themesdirectory. Set the zsh theme and update your changes To open the config file (.zshrc), run the command: You then need to select this theme in your ~/.zshrc. In this scenario, I changed it to agnoster, an already pre-installed theme. The default theme is robbyrussell, but you can change it to any theme of your choice. Oh My Zsh comes bundled with a lot of themes. Now, we will install the dependencies to get the best out of Zsh. Restart iTerm2 to dive into the new experience of using Zsh. Note this command used to be upgrade_oh_my_zsh, however `upgrade_oh_my_zsh` is deprecated. You can upgrade it to get the latest features it offers. It runs on Zsh to provide cool features configurable within the ~/.zhrc config file. Let’s install zsh using brew and make iTerm2 use it. Zsh is a shell designed for interactive use, although it is also a powerful scripting language.īy default, macOs ships with zsh located in/bin/zsh. You can integrate zsh into iTerm2 to increase productivity. Most software engineers prefer iTerm2 over the default terminal that ships with macOS as a result of its cool features. ITerm2 is a replacement for terminal and the successor to iTerm. You skip this by running the command sudo su, then the command or as suggested Xcode-select: error: -reset must be run as root (e.g. r, -reset reset to the default command line tools path v, -version print the xcode-select version install open a dialog for installation of the command line developer tools s, -switch set the path for the active developer directory ![]() p, -print-path print the path of the active developer directory h, -help print this help message and exit Xcodebuild) as well as the BSD development commands (such as cc and make). This directoryĬontrols which tools are used for the Xcode command line tools (for example, Print or change the path to the active developer directory. Xcode-select: error: invalid argument '-install' On my first run I received the following error If you get an error, run xcode-select -r to reset xcode-select. Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple’s macOS.īefore installing Homebrew, we need to install the CLI tools for Xcode. In this article, I'll run through how to configure iTerm2 with ZSH and its dependencies. Z shell (Zsh) is a Unix shell built on top of bash (the default shell for macOS) with a large number of improvements.
0 Comments
Leave a Reply. |