Correctly do cargo completions

This commit is contained in:
traxys 2022-09-03 22:08:13 +02:00
parent 89a13bf430
commit 884459a783

View file

@ -16,7 +16,9 @@
home.file = {
".zfunc/_cargo".text = ''
#compdef cargo
source $(rustc --print sysroot)/share/zsh/site-functions/_cargo
if command -v rustc >/dev/null 2>&1; then
source "$(rustc --print sysroot)"/share/zsh/site-functions/_cargo
fi
'';
};
}