home/.zsh/zfunc/_cargo

5 lines
127 B
Plaintext

#compdef cargo
if command -v rustc >/dev/null 2>&1; then
source "$(rustc --print sysroot)"/share/zsh/site-functions/_cargo
fi