Update dotfiles/.zshrc, dotfiles/.local/share/bash-completion/generate.sh
This commit is contained in:
parent
1ad4f767af
commit
71aeaae202
2 changed files with 35 additions and 15 deletions
|
@ -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"
|
cp /usr/local/src/fd/autocomplete/fd.bash-completion "$HOME/.local/share/bash-completion/completions/fd.bash"
|
||||||
fi
|
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
|
### Google Cloud SDK
|
||||||
if command -v brew >/dev/null; then
|
if command -v brew >/dev/null; then
|
||||||
if [ -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc" ]; 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"
|
cp /usr/local/src/hyperfine/autocomplete/hyperfine.bash-completion "$HOME/.local/share/bash-completion/completions/hyperfine.bash"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### kubectl
|
||||||
|
if command -v kubectl > /dev/null; then
|
||||||
|
kubectl completion bash > "$HOME/.local/share/bash-completion/completions/kubectl.bash"
|
||||||
|
fi
|
||||||
|
|
||||||
### mcfly
|
### mcfly
|
||||||
export MCFLY_KEY_SCHEME=vim
|
export MCFLY_KEY_SCHEME=vim
|
||||||
if command -v mcfly > /dev/null; then
|
if command -v mcfly > /dev/null; then
|
||||||
|
|
|
@ -278,19 +278,19 @@ if command -v antigen > /dev/null; then
|
||||||
antigen bundle fig
|
antigen bundle fig
|
||||||
antigen bundle fzf
|
antigen bundle fzf
|
||||||
antigen bundle gcloud
|
antigen bundle gcloud
|
||||||
antigen bundle gh
|
# antigen bundle gh
|
||||||
antigen bundle git
|
antigen bundle git
|
||||||
antigen bundle git-auto-fetch
|
antigen bundle git-auto-fetch
|
||||||
antigen bundle gnu-utils
|
antigen bundle gnu-utils
|
||||||
antigen bundle golang
|
antigen bundle golang
|
||||||
antigen bundle gpg-agent
|
antigen bundle gpg-agent
|
||||||
antigen bundle gradle
|
antigen bundle gradle
|
||||||
antigen bundle helm
|
# antigen bundle helm
|
||||||
antigen bundle heroku
|
antigen bundle heroku
|
||||||
antigen bundle httpie
|
antigen bundle httpie
|
||||||
antigen bundle ionic
|
antigen bundle ionic
|
||||||
antigen bundle keychain
|
antigen bundle keychain
|
||||||
antigen bundle kubectl
|
# antigen bundle kubectl
|
||||||
antigen bundle macos
|
antigen bundle macos
|
||||||
antigen bundle macports
|
antigen bundle macports
|
||||||
antigen bundle magic-enter
|
antigen bundle magic-enter
|
||||||
|
@ -327,14 +327,19 @@ if command -v antigen > /dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Deno
|
### Deno
|
||||||
#if command -v deno > /dev/null; then
|
if command -v deno > /dev/null; then
|
||||||
# eval "$(deno completions zsh)"
|
eval "$(deno completions zsh)"
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
|
### gh
|
||||||
|
if command -v gh > /dev/null; then
|
||||||
|
eval "$(gh completion -s zsh)"
|
||||||
|
fi
|
||||||
|
|
||||||
### Helm
|
### Helm
|
||||||
#if command -v helm > /dev/null; then
|
if command -v helm > /dev/null; then
|
||||||
# eval "$(helm completion zsh)"
|
eval "$(helm completion zsh)"
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
### Hyperfine
|
### Hyperfine
|
||||||
if command -v hyperfine > /dev/null && [ -f /usr/local/src/hyperfine/autocomplete/hyperfine.zsh-completion ]; then
|
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"
|
. "$HOME/.local/asdf/plugins/java/set-java-home.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### kubectl
|
||||||
|
if command -v kubectl > /dev/null; then
|
||||||
|
eval "$(kubectl completion zsh)"
|
||||||
|
fi
|
||||||
|
|
||||||
### mcfly
|
### mcfly
|
||||||
export MCFLY_KEY_SCHEME=vim
|
export MCFLY_KEY_SCHEME=vim
|
||||||
if command -v mcfly > /dev/null; then
|
if command -v mcfly > /dev/null; then
|
||||||
|
@ -353,14 +363,14 @@ if command -v mcfly > /dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Poetry
|
### Poetry
|
||||||
#if command -v poetry > /dev/null; then
|
if command -v poetry > /dev/null; then
|
||||||
# eval "$(poetry completions zsh)"
|
eval "$(poetry completions zsh)"
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
### Volta
|
### Volta
|
||||||
#if command -v volta > /dev/null; then
|
if command -v volta > /dev/null; then
|
||||||
# eval "$(volta completions zsh)"
|
eval "$(volta completions zsh)"
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
### Fig
|
### Fig
|
||||||
if [ -f "$HOME/.fig/shell/zshrc.post.zsh" ]; then
|
if [ -f "$HOME/.fig/shell/zshrc.post.zsh" ]; then
|
||||||
|
|
Loading…
Reference in a new issue