mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 10:22:00 +00:00
fix(rust): use default toolchain when completing cargo
This commit is contained in:
parent
4d8d7bed50
commit
a01cf85627
1 changed files with 4 additions and 1 deletions
|
@ -25,4 +25,7 @@ fi
|
|||
|
||||
# Generate completion files in the background
|
||||
rustup completions zsh >| "$ZSH_CACHE_DIR/completions/_rustup" &|
|
||||
rustup completions zsh cargo >| "$ZSH_CACHE_DIR/completions/_cargo" &|
|
||||
cat >| "$ZSH_CACHE_DIR/completions/_cargo" <<'EOF'
|
||||
#compdef cargo
|
||||
source $(rustc +${${(z)$(rustup default)}[1]} --print sysroot)/share/zsh/site-functions/_cargo
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue