iTerm2 + Oh My Zsh + Auto suggestions + powerline + [Powerlevel9k] - (macOS)

iTerm2
> brew cask install iterm2
Or, if you do not have homebrew (you should ;)): Download and install iTerm2

- https://www.iterm2.com/downloads.html

iTerm2 has better color fidelity than the built in Terminal, so your themes will look better.

Oh My Zsh

More info here: https://github.com/robbyrussell/oh-my-zsh - https://ohmyz.sh/

Install with curl
> sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

when the installation is done, you can review the config file ~/.zshrc 


Auto suggestions (for Oh My Zsh)

Just follow these steps: https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#oh-my-zsh

If the auto suggestions do not appear to show, it could be a problem with your color scheme. Under "iTerm → Preferences → Colors tab", check the value of Black Bright, that is the color your auto suggestions will have. It will be displayed on top of the Background color. If there is not enough contrast between the two, you won't see the suggestions even if they're actually there..

1. Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)
> git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

2. Add the plugin to the list of plugins for Oh My Zsh to load (edit ~/.zshrc):

> plugins=(zsh-autosuggestions)

3. Start a new terminal session.


* OR macOS via Homebrew

1. Install the zsh-autosuggestions package using Homebrew.
> brew install zsh-autosuggestions

2. Add the following to your .zshrc:

> source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh

3. Start a new terminal session.


Powerlevel9k

To install this theme for use in Oh-My-Zsh, clone this repository into your OMZ custom/themes directory.
> git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

Then edit your ~/.zshrc and update 

ZSH_THEME="powerlevel9k/powerlevel9k"

owerlevel9k offers a whole lot more, best is to check out these user made configs yourself.


- https://github.com/bhilburn/powerlevel9k/wiki/Show-Off-Your-Config

Others @ powerline fonts > https://github.com/powerline/fonts

- Suggestions font: Meslo (https://github.com/powerline/fonts/blob/master/Meslo%20Slashed/Meslo%20LG%20M%20Regular%20for%20Powerline.ttf)

Open the downloaded font and press "Install Font".

Set this font in iTerm2 (14px is my personal preference) (iTerm → Preferences → Profiles → Text → Change Font).

Restart iTerm2 for all changes to take effect.

Syntax highlighting
> brew install zsh-syntax-highlighting

If you do not have or do not like homebrew, follow the installation instructions instead.


After installation through homebrew, add
> source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

to the end of your .zshrc file. After that, it's best to restart your terminal. Sourcing your ~/.zshrc does not seem to work well with this plugin. If you use Ruby on Rails, read on more.

Install RVM
- Official document - via: http://www.rvm.io/rvm/install
> gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
> curl -sSL https://get.rvm.io | bash -s stable
> source ~/.rvm/scripts/rvm
> type rvm | head -n 1
> rvm list known
> rvm install ruby-2.5.1
> rvm use 2.5.1
> rvm use 2.5.1 --default