mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
completions/rustc: Don't autoinstall nightly toolchain
Just calling `rustc +nightly` is enough to trigger automatic installation. Fixes #12202
This commit is contained in:
@@ -34,6 +34,10 @@ function __fish_rustc_z_completions
|
||||
return
|
||||
end
|
||||
|
||||
if not command -q rustup; or not rustup toolchain list | string match -q 'nightly*'
|
||||
return
|
||||
end
|
||||
|
||||
set -l rust_docs (rustc +nightly -Z help 2>/dev/null |
|
||||
string replace -r '^\s+' '' | string replace -ar ' +' ' ' | string replace -r '=val +-- +' '=\t')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user