Moving iTerm2 from Applications to Trash or performaning a brew cask uninstall iterm2 may not be enough as it leaves behind Finder Context Menu Items. There's FAQ entry covering how to remove all settings. Defaults delete com.googlecode.iterm2 However, running the above command does not remove the items from the Finder Context Menu even after a killall Finder. ITerm2 is an open source replacement for Apple's Terminal. It's highly customizable and comes with a lot of useful features. Use Homebrew to download and install: brew cask install iterm2 Customization Colors and Font Settings. Here are some suggested settings you can change or set, they are all optional. Homebrew’s package index. Name: iTerm2 Terminal emulator as alternative to Apple's Terminal app. To enable these, go to “iTerm → Preferences → Profiles → Keys → Load Preset → Natural Text Editing” Custom prompt styles By default, your prompt will now show “user@hostname” in the prompt. Homebrew’s package index. Name: iTerm2 Terminal emulator as alternative to Apple's Terminal app.
As a software engineer, we spend significant amount of time in terminal. Terminal in Mac OSX is better than windows but not as good as iTerm2. If you combine iTerm with Zsh and Oh-My-Zsh then what you get is awesomeness.
Install iTerm2
Download a stable build from https://www.iterm2.com/downloads.html and install it.
Install Brew
Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple’s macOS operating system.
Now, open iTerm and install
brew
using following command:Install and Configure Fira Code Font
Fira Code is an extension of the Fira Mono font containing a set of ligatures for common programming multi-character combinations. This is just a font rendering feature: underlying code remains ASCII-compatible. This helps to read and understand code faster.
Without Fira Code
With Fira Code and Ligature
To install Fira Code, run following command:
ProTip: Fira Code font is supported in multiple editors and terminals. Checkout complete list on Fira Code site
Setup Font in iTerm
Step 1. Open
Preferences
in iTerm by pressing ⌘ and , keysStep 2. Go to
Profile
tab and create a new profileStep 3. Go to
Text
tab. Change font and ASCII font to Fira Code
and enable use of ligatureInstall Zsh
Once you have
brew
installed, you can install zsh
using following command:Install and Configure Oh-My-Zsh
Oh-My-Zsh is an open source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes and much more.
Install Oh-My-Zsh using following command:
Set Theme
![Install Install](https://steemitimages.com/0x0/https://user-images.githubusercontent.com/43256291/54432034-626e9d80-476b-11e9-9ef8-78595a60d3aa.png)
There are whole lot of themes to choose from here. My personal customized theme is based on bira theme.Change
ZSH_THEME=robbyrussell
to ZSH_THEME=YOUR_FAV_THEME_NAME
into ~/.zshrc
file. After change reload shell by:Enable plugins
There’s an abundance of plugin in Oh-my-zsh. You can find list of plugins here.Most of the plugins provide autocompletion for command options on press of ⇥ tab key (demo). You can turn on plugins by updating
plugins
section in ~/.zshrc
file like following:Daily 1 7 3. Install zsh syntax highlighting and auto suggestions plugins if you are interested in these functionality.
Iterm
Add following lines to end of the
~/.zshrc
file. You can pick and choose from last 3 lines, based on the plugin you have installed.ProTip: To reload any change made in
~/.zshrc
file, use source ~/.zshrc
command.Working with Alias
Alias is not exclusive functionality of zsh but Oh-my-zsh provides lots of alias by default. Lots of plugins also come with alias for example
git
plugin.If you want to create your on aliases, create a separate file and load that file using
~/.zshrc
by adding following line in the file:To list all the avaliable alias use command
alias
in the terminal.HotKeys
Homebrew Iterm2
If your hotkeys for moving backward (⌥ option + ←) and forward (⌥ option + →) word by word do not work in iTerm then change keys preset in your profile to
Natural Text Editing
.