mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
14 lines
401 B
Bash
14 lines
401 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
|
|
} &>/dev/null &!
|