From 99b5e6e0e7ac4f45f557d1333cdfbd8b369cc5cd Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sun, 8 Dec 2024 09:13:20 +0100 Subject: [PATCH] completions/cargo: Complete packages to uninstall --- share/completions/cargo.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/share/completions/cargo.fish b/share/completions/cargo.fish index 292fb7da0..0061d2ad2 100644 --- a/share/completions/cargo.fish +++ b/share/completions/cargo.fish @@ -737,6 +737,7 @@ complete -c cargo -n "__fish_seen_subcommand_from tree" -s v -l verbose -d 'Use complete -c cargo -n "__fish_seen_subcommand_from tree" -l frozen -d 'Require Cargo.lock and cache are up to date' complete -c cargo -n "__fish_seen_subcommand_from tree" -l locked -d 'Require Cargo.lock is up to date' complete -c cargo -n "__fish_seen_subcommand_from tree" -l offline -d 'Run without accessing the network' +complete -c cargo -n "__fish_seen_subcommand_from uninstall" -fa '(cargo install --list | string replace -rf "(\S+) (.*):" \'$1\t$2\')' complete -c cargo -n "__fish_seen_subcommand_from uninstall" -s p -l package -d 'Package to uninstall' complete -c cargo -n "__fish_seen_subcommand_from uninstall" -l bin -d 'Only uninstall the binary NAME' complete -c cargo -n "__fish_seen_subcommand_from uninstall" -l root -d 'Directory to uninstall packages from'