When people ask me why I’m using a Mac instead of a Windows device for doing all my stuff, I always end up with a single but significant reason: I have a real shell! Most hardcore Windows fans are answering to this comment: “Well there is PowerShell” or: “Hey we have Cygwin” but to be honest, those are no alternatives to a real shell 🙂
A lot of shell shortcuts work in iterm and it's good to learn these because arrow keys, home/end keys and Mac equivalents don't always work. For example ⌘ + Left Arrow is usually the same as Home (go to beginning of current line) but that doesn't work in the shell. Home works in many apps but it takes you away from the home row. ITerm2 is a fork of the older iTerm project. ITerm2 is a Terminal replacement and the successor of iTerm. It focuses on speed, internationalization, and building new features to improve your life. ITerm's autocomplete tool speeds up the typing of repetitive commands. ITerm2 as you have seen above possesses distinct features which are designed for maximum speed and usability. With these utilities and many other helpful tools iTerm2 is perfect for those users who work with Terminal every single day and feel that it lags in efficiency. Damianpowell changed the title oh-my-posh causes iterm2 to show an alert with every prompt oh-my-posh causes iTerm2 (Mac) to show an alert with every prompt Jun 13, 2020. Oh-my-posh seems to cause iTerm2 to show an alert with every prompt. I don't know what is causing this. I'll happy dig into this if you could give me a clue where to look? I'm using the same font (Cascadia Mono PL) in iTerm2 with oh-my-z.
A few people asked me over the time which configuration/theme and stuff I use within my terminal and because I’ve to set up a new device in these days (a stunning brand new 13” MBP Retina with ForceTouch)
I’ll use the chance to explain my setup a bit…
Iterm2 For Windows
iTerm2 is an alternative to Apple’s OOB Terminal App. Both can be installed side by side. So no worry, you will not break anything when installing it.
Either you can download iTerm2 from here or you can install it using homebrew by executing
Installing Solarized Theme for iTerm2
Make iTerm2 comfortable by applying the Solarized theme.
After downloading the theme open iTerm2 and import the downloaded solarized theme through
iTerm -> Preferences -> Profiles -> Colors -> load presets -> Import
OH-MY-ZSH is a replacement for the default bash on macOS. OH-MY-ZSH also runs side-by-side with bash, so again no worries.
Install it by invoking
After installation has finished open
~/.zshrc in any editor and set the theme for ZSH
Powerline font is responsible for bringing some kind and helpful icons to the terminal. For example, it’s displaying branches in the following way
You can download the font from here, install this font on your system and then apply it in iTerm2 through
iTerm -> preferences -> profiles -> text
I’ve chosen 11pt as font-size for my setup, so apply PowerLine for Regular Font and Non-ASCII Font by clicking each Change Font button and select the PowerLine font.
More Power with Plugins
Iterm2 For Mac
OH-MY-ZSH ships with support for plugins. Their documentation on GitHub is listing which plugins were currently part of the release. By default, those plugins were not enabled. To enable them, you’ve to list them inside of your
.zshrc File. I use only a few plugins to keep things simple.
Iterm 2 Download
.zshrc file and look for
plugins=(), once you find that line, list all plugins you want to use within the braces as shown here:
plugins=(git bower sublime brew history node npm sudo web-search).
Plugins can either extend the auto-completion tab, create new key bindings or create new aliases within your terminal. So take a minute and read through the descriptions of those plugins before enabling them. It’s worth reading the description for each plugin, because you may end up with being even more productive.
That’s it for iTerm, but
Iterm Mac Os
Now you’ve installed and configured a good starting point. However, you should not stop here. I’ve written another article on how to setup NVM on your system to switch and maintain multiple Node.js installations easily. Go and read the article now!