Skip to content

Instantly share code, notes, and snippets.

@varszegik
Last active June 4, 2021 12:44
Show Gist options
  • Save varszegik/e4f70393683d9a2dce54b31b62c60a8e to your computer and use it in GitHub Desktop.
Save varszegik/e4f70393683d9a2dce54b31b62c60a8e to your computer and use it in GitHub Desktop.
zshrc
# load zgen
source "${HOME}/.zgen/zgen.zsh"
export PATH=/usr/local/bin:$PATH
export EDITOR=nano
export BULLETTRAIN_CONTEXT_DEFAULT_USER=root
export NVM_AUTO_USE=true
export NVM_NO_USE=true
# if the init scipt doesn't exist
if ! zgen saved; then
echo "Creating a zgen save"
zgen oh-my-zsh
# plugins
zgen oh-my-zsh plugins/git
zgen oh-my-zsh plugins/docker
zgen oh-my-zsh plugins/command-not-found
zgen load lukechilds/zsh-better-npm-completion
zgen load zsh-users/zsh-syntax-highlighting
# completions
zgen load zsh-users/zsh-completions src
# theme
zgen load caiogondim/bullet-train-oh-my-zsh-theme bullet-train
# https://github.com/caiogondim/bullet-train.zsh
zgen load lukechilds/zsh-nvm
# save all to init script
zgen save
fi
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment