Added auto update and tab completion for GS utils

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-07-15 07:53:44 +01:00
parent f363cabe84
commit c991af3e0f
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
# Giant Swarm utils
which opsctl &>/dev/null && screen -dm bash -c 'opsctl version update'
which devctl &>/dev/null && screen -dm bash -c 'devctl version update'
which kubectl-gs &>/dev/null && screen -dm bash -c 'kubectl-gs selfupdate'
which opsctl &>/dev/null && opsctl completion zsh > /usr/local/share/zsh/site-functions/_opsctl
which devctl &>/dev/null && devctl completion zsh > /usr/local/share/zsh/site-functions/_devctl
rm -f ~/.zcompdump; compinit