Make sure you've got iTerm2 installed before running the script. After that, open iTerm, clone this repo, cd into the directory and run ./init.sh.
If you don't have it installed, run brew cask install iterm2.
The script will:
- Download and install Oh My ZShell.
- Download and install powerlevel9k.
- Download and install syntax highlighting for oh-my-zsh.
- Remove default
.zshrcand link it to the one in this repo.
After running the script, you can face a bug in which the font is not displayed correctly in the iTerm2 terminal. In that case, the correct thing to do is:
Go to iTerm2 -> Preferences -> Profiles -> Text, and change the font to Droid Sans Mono Awesome
If you don't see this font along with the other options, you can easily install it because it's inside this repository.
Go to iTerm2 -> Preferences -> Profiles -> Colors, and change the color presets to Solarized Dark
Installing a patched font will mess up the integrated terminal in VS Code unless you use the proper settings. You'll need to go to settings (CMD + ,) and add or edit the following values:
- For Droid Font Awesome:
"terminal.integrated.fontFamily": "Droid Sans Mono Awesome" - For Source Code Pro:
"terminal.integrated.fontFamily": "Source Code Pro for Powerline" - For Meslo:
"terminal.integrated.fontFamily": "Meslo LG M for Powerline" - For other fonts you'll need to check the font name in Font Book.
- You can also set the fontsize e.g.: "terminal.integrated.fontSize": 14.