DEV Community

Cover image for iTerm2 + Oh My Zsh + Dracula theme + Plugins
Syed Ibrahim
Syed Ibrahim

Posted on

iTerm2 + Oh My Zsh + Dracula theme + Plugins

iTerm2 and Oh-my-zsh

Download iTerm2

  1. Download iTerm2 for MacOs from here
  2. After downloading, drag and drop iTerm2 file to your Application folder.

Install oh-my-zsh
Open iTerm2 and run the following curl command which will install oh-my-zsh and replace default terminal with zsh.

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Enter fullscreen mode Exit fullscreen mode

Dracula Theme
You can install using git:

git clone https://github.com/dracula/iterm.git
Enter fullscreen mode Exit fullscreen mode

Activating theme

  1. iTerm2 > Preferences > Profiles > Colors Tab
  2. Open the Color Presets... drop-down in the bottom right corner
  3. Select Import... from the list
  4. Select the Dracula.itermcolors file
  5. Select the Dracula from Color Presets...

Screenshot 2020-09-14 at 7 21 48 PM

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

Download zsh-autosuggestions using

git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
Enter fullscreen mode Exit fullscreen mode

Download zsh-syntax-highlighting using

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
Enter fullscreen mode Exit fullscreen mode

To enable plugin, edit the ~/.zshrc file

vi ~/.zshrc
Enter fullscreen mode Exit fullscreen mode

Find plugin using /plugin then press " i " to enter INSERT mode and
append zsh-autosuggestions & zsh-syntax-highlighting to plugins() like this

.  
.  
.  
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)  
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/  
# Example format: plugins=(rails git textmate ruby lighthouse)  
# Add wisely, as too many plugins slow down shell startup.  
plugins=(  
  git  
  docker  
  zsh-autosuggestions 
  zsh-syntax-highlighting
)
Enter fullscreen mode Exit fullscreen mode

Run the following command to apply the changes

source ~/.zshrc
Enter fullscreen mode Exit fullscreen mode

Screenshot 2020-09-14 at 7 22 06 PM

Top comments (0)