Skip to content

Instantly share code, notes, and snippets.

@taisyo7333
Last active July 16, 2018 09:43
Show Gist options
  • Save taisyo7333/879c7a68c178471e8236c15cb1e72b2d to your computer and use it in GitHub Desktop.
Save taisyo7333/879c7a68c178471e8236c15cb1e72b2d to your computer and use it in GitHub Desktop.
zshrc ... Use zgen
# https://github.com/tarjoilija/zgen
# load zgen
source "${HOME}/.zgen/zgen.zsh"
POWERLEVEL9K_MODE='awesome-fontconfig'
# if the init script doesn't exist
if ! zgen saved; then
# specify plugins here
zgen load superbrothers/zsh-kubectl-prompt
zgen oh-my-zsh
# plugins
zgen oh-my-zsh plugins/git
zgen oh-my-zsh plugins/kubectl
zgen oh-my-zsh plugins/kops
zgen oh-my-zsh plugins/docker
zgen oh-my-zsh plugins/docker-compose
zgen oh-my-zsh plugins/helm
# completions
zgen load zsh-users/zsh-completions src
# # theme
# zgen oh-my-zsh themes/arrow
# prezto and modules
zgen prezto
zgen prezto git
zgen prezto command-not-found
zgen prezto syntax-highlighting
# prezto options
zgen prezto editor key-bindings 'emacs'
zgen prezto prompt theme 'clint' #sorin
zgen load https://github.com/popstas/zsh-command-time command-time.plugin.zsh
# zgen load bhilburn/powerlevel9k powerlevel9k
# Generate the init script from plugins above
zgen save
fi
autoload -U colors; colors
RPROMPT='%{$fg[blue]%}($ZSH_KUBECTL_PROMPT)%{$reset_color%}'
# if [ $commands[helm] ]; then
# source <(helm completion zsh)
# fi
# if [ $commands[kubectl] ]; then
# source <(kubectl completion zsh)
# fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment