diff --git a/states/zsh/defaults.yaml b/states/zsh/defaults.yaml index 6577d0d..553f16f 100644 --- a/states/zsh/defaults.yaml +++ b/states/zsh/defaults.yaml @@ -2,8 +2,9 @@ zsh: enabled: true config: - minimal: false + full: false golang: true rust: true android: false + sshagent: false haproxy: true diff --git a/states/zsh/templates/zshenv.j2 b/states/zsh/templates/zshenv.j2 index fc6620c..02fbf47 100644 --- a/states/zsh/templates/zshenv.j2 +++ b/states/zsh/templates/zshenv.j2 @@ -45,12 +45,16 @@ fi export ZSH=/usr/share/oh-my-zsh ZSH_THEME="jreese" DISABLE_AUTO_UPDATE="true" -{%- if zsh.config.minimal %} + plugins=(common-aliases git) -{%- else %} -plugins=(common-aliases sudo docker git ansible command-not-found systemd python nmap zsh-autosuggestions golang rust kubectl) +{%- if zsh.config.full %} +plugins+=(common-aliases sudo docker git ansible command-not-found systemd python nmap zsh-autosuggestions golang rust kubectl) {%- endif %} +{%- if zsh.config.sshagent %} +plugins+=(ssh-agent) +{% endif %} + if [[ -f $ZSH/oh-my-zsh.sh ]] then source $ZSH/oh-my-zsh.sh