Oh my zsh iterm24/6/2023 ![]() ![]() To enable these, go to "iTerm → Preferences → Profiles → Keys → Key mappings → Presets. Enable word jumps and word deletion, aka natural text selectionīy default, word jumps (option + → or ←) and word deletions (option + backspace) do not work. If there is not enough contrast between the two, you won't see the suggestions even if they're actually there. It will be displayed on top of the Background color. Under "iTerm → Preferences → Profiles → Colors tab", check the value of Black Bright, that is the color your auto suggestions will have. If the auto suggestions do not appear to show, it could be a problem with your color scheme. ![]() word jumping with arrow keys / natural text editingĬan be found in the section below.Restart iTerm2 for all changes to take effect. 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.If you did not go with Powerlevel10k or you want another font, read on: If you want to trigger the configuration wizard immediately, simply run p10k configure to discover all options, which are plentiful. ![]() Powerlevel10k offers a whole lot more and is extremely configurable, best is to check its project page. Once you do so, when you start a new terminal session, the Powerlevel10 configure wizard will be launched to set your prompt, beware, there are many many options! Then edit your ~/.zshrc and set ZSH_THEME="powerlevel10k/powerlevel10k". So if you prefer the Powerlevel10k look with added info such as exit codes and timestamps on the right, run: git clone $ZSH_CUSTOM/themes/powerlevel10k Why Powerlevel10k? Well, because it's a drop-in replacement for Powerlevel9k, just a lot faster to render your prompt. When the installation is done, edit ~/.zshrc and set ZSH_THEME="agnoster" for the default look. More info here: Install with curl sh -c "$(curl -fsSL )" You can create a different profile other than Default if you wish to do so. Apply them in iTerm through iTerm → preferences → profiles → colors → load presets. The color settings will be imported into iTerm2. Just save it somewhere and open the file(s). Solarized Dark theme (patched version to fix the bright black value).ITerm2 has better color fidelity than the built in Terminal, so your themes will look better. Or, if you do not have homebrew (you should )): Download and install iTerm2 zshrc file: nano ~ /.How to install iTerm2 brew install -cask iterm2 You can choose from a selection of different themes.įont can be changed within the iTerm app preferences, but for the zsh theme, you will need to: Now we just need to set a theme and change our font, I personally use "UbuntuMono" font and "agnoster" theme. Recycle the stuff you don’t need anymore: cd. We need some cool fonts, even though iTerm2 has support for Powerline glyphs, we need powerline fonts for support in other apps, like VSCode or the default terminal. So now we just need oh-my-zsh, we can install it via curl: sh -c " $(curl -fsSL )" Install Powerline fonts You don't need to install it, since macOS already comes with zsh shell. You can use the below command to install homebrew /bin /bash -c "$(curl -fsSL )" Install zsh & oh-my-zsh What is homebrew, you might ask? It's a package manager for macOS. You can install the iTerm2 app from the official site - Install homebrew This step is optional, I just prefer it over the regular terminal app that comes pre-installed. We need few things, and here are the steps we are going to to take: Which means I need to set it up, especially the terminal.Īs some of you already know, I like to see my terminal with colours and icons that help me to see what I am doing. So I finally received my new work laptop and it's a new m1 MacBook pro. I know you haven't heard from me for a while, but I just have been really busy with some career changes, will definitely right about them. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |