diff --git a/dotfiles/.local/share/bash-completion/generate.sh b/dotfiles/.local/share/bash-completion/generate.sh index 1aad828f..66eadfc0 100644 --- a/dotfiles/.local/share/bash-completion/generate.sh +++ b/dotfiles/.local/share/bash-completion/generate.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash +### Deno +if command -v deno > /dev/null; then + deno completions bash > "$HOME/.local/share/bash-completion/completions/deno.bash" +fi + ### direnv if command -v direnv > /dev/null; then direnv hook bash > "$HOME/.local/share/bash-completion/completions/direnv.bash" @@ -27,6 +32,11 @@ if command -v googler > /dev/null; then fi fi +### Helm +if command -v helm > /dev/null; then + helm completion bash > "$HOME/.local/share/bash-completion/completions/helm.bash" +fi + ### Hyperfine if command -v hyperfine > /dev/null && [ -f /usr/local/src/hyperfine/autocomplete/hyperfine.bash-completion ]; then cp /usr/local/src/hyperfine/autocomplete/hyperfine.bash-completion "$HOME/.local/share/bash-completion/completions/hyperfine.bash" @@ -35,7 +45,17 @@ fi ### mcfly export MCFLY_KEY_SCHEME=vim if command -v mcfly > /dev/null; then - echo "$(mcfly init bash)" > "$HOME/.local/share/bash-completion/completions/mcfly.bash" + mcfly init bash > "$HOME/.local/share/bash-completion/completions/mcfly.bash" +fi + +### Poetry +if command -v poetry > /dev/null; then + poetry completions bash > "$HOME/.local/share/bash-completion/completions/poetry.bash" +fi + +### Volta +if command -v volta > /dev/null; then + volta completions bash > "$HOME/.local/share/bash-completion/completions/volta.bash" fi ### wp-cli (only bash available) @@ -45,5 +65,5 @@ fi ### zoxide if command -v zoxide >/dev/null; then - echo "$(zoxide init bash)" > "$HOME/.local/share/bash-completion/completions/zoxide.bash" + zoxide init bash > "$HOME/.local/share/bash-completion/completions/zoxide.bash" fi diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index c4dadf4b..c1ebce07 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -122,7 +122,6 @@ if command -v antigen > /dev/null; then antigen bundle command-not-found antigen bundle copyfile antigen bundle copybuffer - antigen bundle cp antigen bundle deno antigen bundle docker antigen bundle docker-compose @@ -180,6 +179,16 @@ if command -v antigen > /dev/null; then antigen apply fi +### Deno +if command -v deno > /dev/null; then + eval "$(deno completions zsh)" +fi + +### Helm +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 source /usr/local/src/hyperfine/autocomplete/hyperfine.zsh-completion @@ -196,6 +205,16 @@ if command -v mcfly > /dev/null; then eval "$(mcfly init zsh)" fi +### Poetry +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 + ### Fig if [ -f "$HOME/.fig/shell/zshrc.post.zsh" ]; then source "$HOME/.fig/shell/zshrc.post.zsh"