mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -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
|
return
|
||||||
end
|
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 |
|
set -l rust_docs (rustc +nightly -Z help 2>/dev/null |
|
||||||
string replace -r '^\s+' '' | string replace -ar ' +' ' ' | string replace -r '=val +-- +' '=\t')
|
string replace -r '^\s+' '' | string replace -ar ' +' ' ' | string replace -r '=val +-- +' '=\t')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user