summaryrefslogtreecommitdiffstats
path: root/.zfunc/_cargo
diff options
context:
space:
mode:
Diffstat (limited to '.zfunc/_cargo')
-rw-r--r--.zfunc/_cargo4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zfunc/_cargo b/.zfunc/_cargo
new file mode 100644
index 0000000..351db7f
--- /dev/null
+++ b/.zfunc/_cargo
@@ -0,0 +1,4 @@
+#compdef cargo
+if command -v rustc >/dev/null 2>&1; then
+ source "$(rustc --print sysroot)"/share/zsh/site-functions/_cargo
+fi