Skip to content

Instantly share code, notes, and snippets.

@songyunlu
Created September 13, 2017 06:59
Show Gist options
  • Save songyunlu/53c9857907bf38d2207c7d45d73542b8 to your computer and use it in GitHub Desktop.
Save songyunlu/53c9857907bf38d2207c7d45d73542b8 to your computer and use it in GitHub Desktop.
My .zshrc
umask 022
export ZGEN_RESET_ON_CHANGE=(/home/jimmy/.zshrc)
# load zgen
source "/home/jimmy/.zgen/zgen.zsh"
# 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/command-not-found
zgen oh-my-zsh plugins/vi-mode
zgen load zsh-users/zsh-syntax-highlighting
zgen load zsh-users/zsh-history-substring-search
zgen load tarruda/zsh-autosuggestions
zgen load TBSliver/zsh-plugin-colored-man
# bulk load
zgen loadall <<EOPLUGINS
# plugins here
EOPLUGINS
# ^ can't indent this EOPLUGINS
# completions
zgen load zsh-users/zsh-completions src
# theme
zgen oh-my-zsh themes/dst.zsh-theme
# save all to init script
zgen save
fi
export DOCKER_HOST="tcp://127.0.0.1:2375"
alias jk="jekyll"
alias kc="kubectl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment