mirror of
https://github.com/Matir/skel.git
synced 2026-11-20 18:46:56 -08:00
25 lines
709 B
Bash
25 lines
709 B
Bash
# Build some completions if they don't exist
|
|
# We run in the background to reduce shell startup time
|
|
{
|
|
COMPDIR=${HOME}/.zshrc.completions
|
|
function missing_comp() {
|
|
test ! -f "$COMPDIR/$1"
|
|
}
|
|
|
|
have_command rustup && {
|
|
missing_comp _rustup && rustup completions zsh > $COMPDIR/_rustup
|
|
missing_comp _cargo && rustup completions zsh cargo > $COMPDIR/_cargo
|
|
} || true
|
|
|
|
have_command docker && \
|
|
missing_comp _docker && \
|
|
docker completion zsh > $COMPDIR/_docker || true
|
|
|
|
have_command resticprofile && \
|
|
missing_comp _resticprofile && \
|
|
resticprofile generate --zsh-completion > $COMPDIR/_resticprofile || true
|
|
} &>/dev/null &!
|
|
|
|
# Bazelisk uses bazel
|
|
compdef _bazel bazelisk
|