iTerm2 and zsh Setup
In this section you will find my notes on setting up iTerm2, an awesome terminal emulator for MacOS, and ohmyzsh, an amazing open-source framework for managing your zsh configuration.
#
InstallInstall iTerm2:
Install zsh:
Install ohmyzsh:
Update ohmyzsh:
Exit Terminal and open iTerm2:
⌘
+Space Bar
> Search 'iTerm'You are done setting up iTerm2 and ohmyzsh!
#
Change themetip
To configure ohmyzsh, you will almost always be doing so by opening ~/.zshrc
.
Open the
~/.zshrc
configuration file:Change your theme by updating
ZSH_THEME="robbyrussell"
accordingly.Find a theme you like here and follow the install instructions in the theme repositories.
Run
exec zsh
to reload your new configuration:
You should see your new theme in action.
#
Add an aliasAliases are useful shorcuts you set to reduce the time spent on typing commands you often use. For example, if you often type:
or even worse:
You should add an alias for cd /Users/evantay/Documents/Git
:
Open the
~/.zshrc
configuration file:Add a new alias at the bottom of the file:
Reload zsh:
You can now type repo
whenever you want to cd /Users/evantay/Documents/Git
.