mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-05-15 23:35:08 +02:00
Correctly do cargo completions
This commit is contained in:
parent
89a13bf430
commit
884459a783
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue