Update dotfiles/.zshrc, dotfiles/.local/share/bash-completion/generate.sh
This commit is contained in:
parent
0240c60d20
commit
a25936174e
2 changed files with 42 additions and 3 deletions
|
@ -1,5 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/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
|
### direnv
|
||||||
if command -v direnv > /dev/null; then
|
if command -v direnv > /dev/null; then
|
||||||
direnv hook bash > "$HOME/.local/share/bash-completion/completions/direnv.bash"
|
direnv hook bash > "$HOME/.local/share/bash-completion/completions/direnv.bash"
|
||||||
|
@ -27,6 +32,11 @@ if command -v googler > /dev/null; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### Helm
|
||||||
|
if command -v helm > /dev/null; then
|
||||||
|
helm completion bash > "$HOME/.local/share/bash-completion/completions/helm.bash"
|
||||||
|
fi
|
||||||
|
|
||||||
### Hyperfine
|
### Hyperfine
|
||||||
if command -v hyperfine > /dev/null && [ -f /usr/local/src/hyperfine/autocomplete/hyperfine.bash-completion ]; then
|
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"
|
cp /usr/local/src/hyperfine/autocomplete/hyperfine.bash-completion "$HOME/.local/share/bash-completion/completions/hyperfine.bash"
|
||||||
|
@ -35,7 +45,17 @@ 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
|
||||||
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
|
fi
|
||||||
|
|
||||||
### wp-cli (only bash available)
|
### wp-cli (only bash available)
|
||||||
|
@ -45,5 +65,5 @@ fi
|
||||||
|
|
||||||
### zoxide
|
### zoxide
|
||||||
if command -v zoxide >/dev/null; then
|
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
|
fi
|
||||||
|
|
|
@ -122,7 +122,6 @@ if command -v antigen > /dev/null; then
|
||||||
antigen bundle command-not-found
|
antigen bundle command-not-found
|
||||||
antigen bundle copyfile
|
antigen bundle copyfile
|
||||||
antigen bundle copybuffer
|
antigen bundle copybuffer
|
||||||
antigen bundle cp
|
|
||||||
antigen bundle deno
|
antigen bundle deno
|
||||||
antigen bundle docker
|
antigen bundle docker
|
||||||
antigen bundle docker-compose
|
antigen bundle docker-compose
|
||||||
|
@ -180,6 +179,16 @@ if command -v antigen > /dev/null; then
|
||||||
antigen apply
|
antigen apply
|
||||||
fi
|
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
|
### 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
|
||||||
source /usr/local/src/hyperfine/autocomplete/hyperfine.zsh-completion
|
source /usr/local/src/hyperfine/autocomplete/hyperfine.zsh-completion
|
||||||
|
@ -196,6 +205,16 @@ if command -v mcfly > /dev/null; then
|
||||||
eval "$(mcfly init zsh)"
|
eval "$(mcfly init zsh)"
|
||||||
fi
|
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
|
### Fig
|
||||||
if [ -f "$HOME/.fig/shell/zshrc.post.zsh" ]; then
|
if [ -f "$HOME/.fig/shell/zshrc.post.zsh" ]; then
|
||||||
source "$HOME/.fig/shell/zshrc.post.zsh"
|
source "$HOME/.fig/shell/zshrc.post.zsh"
|
||||||
|
|
Loading…
Reference in a new issue