-
-
Save jmsjtu/ba4b76b8239d1628ef1cf05adb20e37f to your computer and use it in GitHub Desktop.
Pimp my shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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