commit 410f882b199bc252bde929c3084dc65e56a47164 parent 1c7c2cc6e79bdd93bc2c395f2bcee8c236d90d61 Author: Chris Bracken <chris@bracken.jp> Date: Mon, 9 Oct 2023 10:12:35 -0700 Add zsh completions for cargo Diffstat:
A | .config/zsh/zfunc/_cargo | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/.config/zsh/zfunc/_cargo b/.config/zsh/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