Skip to content

Instantly share code, notes, and snippets.

@jmsjtu
Forked from ukdave/pimp-my-shell.txt
Created November 17, 2018 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmsjtu/ba4b76b8239d1628ef1cf05adb20e37f to your computer and use it in GitHub Desktop.
Save jmsjtu/ba4b76b8239d1628ef1cf05adb20e37f to your computer and use it in GitHub Desktop.
Pimp my shell
# Install oh-my-zsh
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Install powerlevel 9k theme:
$ git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
$ brew tap caskroom/fonts
$ brew cask install font-hack-nerd-font
# Add this to ~/.zshrc
POWERLEVEL9K_MODE="nerdfont-complete"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir rbenv vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs time)
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
ZSH_THEME="powerlevel9k/powerlevel9k"
# iTerm2 Settings:
# Font: Hack Nerd Font (12pt, 110% vertical space)
# Use thin strokes for anti-aliased fonts: Always
# Colour Scheme: Brogrammer
$ curl -O https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Brogrammer.itermcolors
# Install grc and warhol plugin for colourised command output (add "warhol" to plugins in ~/.zshrc):
$ brew install grc
$ git clone https://github.com/unixorn/warhol.plugin.zsh.git ~/.oh-my-zsh/custom/plugins/warhol
# Auto-suggestions and syntax highlighting
brew install zsh-autosuggestions zsh-syntax-highlighting
# Add this to the bottom of ~/.zshrc:
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=240
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment