Skip to content

Instantly share code, notes, and snippets.

@ukdave
Last active April 22, 2022 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ukdave/96a0a97f277483e92f0b068705960e54 to your computer and use it in GitHub Desktop.
Save ukdave/96a0a97f277483e92f0b068705960e54 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 10k theme:
$ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
$ brew tap homebrew/cask-fonts
$ brew install --cask font-hack-nerd-font
# Add this to ~/.zshrc
ZSH_THEME="powerlevel10k/powerlevel10k"
# 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-fast-syntax-highlighting
# Add this to the bottom of ~/.zshrc:
source /usr/local/opt/zsh-fast-syntax-highlighting/share/zsh-fast-syntax-highlighting/fast-syntax-highlighting.plugin.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