From 71aeaae202c32ce41a0eda5a1b11795c6026ddb9 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sat, 29 Oct 2022 14:33:46 +0000 Subject: [PATCH] Update dotfiles/.zshrc, dotfiles/.local/share/bash-completion/generate.sh --- .../.local/share/bash-completion/generate.sh | 10 +++++ dotfiles/.zshrc | 40 ++++++++++++------- 2 files changed, 35 insertions(+), 15 deletions(-) diff --git a/dotfiles/.local/share/bash-completion/generate.sh b/dotfiles/.local/share/bash-completion/generate.sh index 66eadfc0..c92f2fb8 100644 --- a/dotfiles/.local/share/bash-completion/generate.sh +++ b/dotfiles/.local/share/bash-completion/generate.sh @@ -15,6 +15,11 @@ if command -v fd > /dev/null && [ -f /usr/local/src/fd/autocomplete/fd.bash-comp cp /usr/local/src/fd/autocomplete/fd.bash-completion "$HOME/.local/share/bash-completion/completions/fd.bash" fi +### gh +if command -v gh > /dev/null; then + gh completion -s bash > "$HOME/.local/share/bash-completion/completions/gh.bash" +fi + ### Google Cloud SDK if command -v brew >/dev/null; then if [ -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc" ]; then @@ -42,6 +47,11 @@ if command -v hyperfine > /dev/null && [ -f /usr/local/src/hyperfine/autocomplet cp /usr/local/src/hyperfine/autocomplete/hyperfine.bash-completion "$HOME/.local/share/bash-completion/completions/hyperfine.bash" fi +### kubectl +if command -v kubectl > /dev/null; then + kubectl completion bash > "$HOME/.local/share/bash-completion/completions/kubectl.bash" +fi + ### mcfly export MCFLY_KEY_SCHEME=vim if command -v mcfly > /dev/null; then diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index 77384a64..e5898cbe 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -278,19 +278,19 @@ if command -v antigen > /dev/null; then antigen bundle fig antigen bundle fzf antigen bundle gcloud - antigen bundle gh + # antigen bundle gh antigen bundle git antigen bundle git-auto-fetch antigen bundle gnu-utils antigen bundle golang antigen bundle gpg-agent antigen bundle gradle - antigen bundle helm + # antigen bundle helm antigen bundle heroku antigen bundle httpie antigen bundle ionic antigen bundle keychain - antigen bundle kubectl + # antigen bundle kubectl antigen bundle macos antigen bundle macports antigen bundle magic-enter @@ -327,14 +327,19 @@ if command -v antigen > /dev/null; then fi ### Deno -#if command -v deno > /dev/null; then -# eval "$(deno completions zsh)" -#fi +if command -v deno > /dev/null; then + eval "$(deno completions zsh)" +fi + +### gh +if command -v gh > /dev/null; then + eval "$(gh completion -s zsh)" +fi ### Helm -#if command -v helm > /dev/null; then -# eval "$(helm completion zsh)" -#fi +if command -v helm > /dev/null; then + eval "$(helm completion zsh)" +fi ### Hyperfine if command -v hyperfine > /dev/null && [ -f /usr/local/src/hyperfine/autocomplete/hyperfine.zsh-completion ]; then @@ -346,6 +351,11 @@ if [ -f "$HOME/.local/asdf/plugins/java/set-java-home.zsh" ]; then . "$HOME/.local/asdf/plugins/java/set-java-home.zsh" fi +### kubectl +if command -v kubectl > /dev/null; then + eval "$(kubectl completion zsh)" +fi + ### mcfly export MCFLY_KEY_SCHEME=vim if command -v mcfly > /dev/null; then @@ -353,14 +363,14 @@ if command -v mcfly > /dev/null; then fi ### Poetry -#if command -v poetry > /dev/null; then -# eval "$(poetry completions zsh)" -#fi +if command -v poetry > /dev/null; then + eval "$(poetry completions zsh)" +fi ### Volta -#if command -v volta > /dev/null; then -# eval "$(volta completions zsh)" -#fi +if command -v volta > /dev/null; then + eval "$(volta completions zsh)" +fi ### Fig if [ -f "$HOME/.fig/shell/zshrc.post.zsh" ]; then