epcim
5/3/2017 - 7:58 PM

salt bash zsh completition

salt bash zsh completition

# source: https://github.com/saltstack/salt/tree/develop/pkg/ *.{bash,zsh}
# FYI: completition provided by salt-common pkg

test -e /usr/share/bash-completion/completions/salt-common || \
  curl -sL "https://raw.githubusercontent.com/saltstack/salt/develop/pkg/salt.bash" | sudo tee /usr/share/bash-completion/completions/salt-common

test -e /usr/share/zsh/vendor-completions/_salt || \
  curl -sL "https://raw.githubusercontent.com/saltstack/salt/develop/pkg/zsh_completion.zsh" | sudo tee /usr/share/zsh/vendor-completions/_salt