Update dotfiles/.zshrc, dotfiles/.local/share/bash-completion/generate.sh

This commit is contained in:
Brian Zalewski 2022-10-29 14:33:46 +00:00
parent 1ad4f767af
commit 71aeaae202
2 changed files with 35 additions and 15 deletions

View file

@ -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

View file

@ -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