Skip to content

Instantly share code, notes, and snippets.

@lucasnlm
Last active May 28, 2020 18:08
Show Gist options
  • Save lucasnlm/e0fbd746475039fb28118e550dd855b8 to your computer and use it in GitHub Desktop.
Save lucasnlm/e0fbd746475039fb28118e550dd855b8 to your computer and use it in GitHub Desktop.

Setup

To install Oh My Zsh run the following command:

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

Extensions

Install the following extensions:

Name Link
Spaceship https://github.com/denysdovhan/spaceship-prompt
Zplugin https://github.com/zdharma/zplugin

How to install Spaceship

export ZSH_CUSTOM=~/.oh-my-zsh
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"

Add the following to the end of ~./zshrc:

ZSH_THEME="spaceship"

SPACESHIP_PROMPT_ADD_NEWLINE=false
SPACESHIP_CHAR_SYMBOL=""
SPACESHIP_CHAR_SUFFIX=" "

Start zplugin

Add the following to the end of ~./zshrc:

source ~/.zplugin/bin/zplugin.zsh

autoload -Uz _zplugin
(( ${+_comps} )) && _comps[zplugin]=_zplugin

zplugins

Add the following after initialize zplugin in ~./zshrc:

zplugin light zsh-users/zsh-autosuggestions
zplugin light zsh-users/zsh-completions
zplugin light zdharma/fast-syntax-highlighting

Other

unset zle_bracketed_paste
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment