From 2d9f8547e2c032be3cc0e64b1c2e41bb02547f85 Mon Sep 17 00:00:00 2001 From: Ryan Patterson Date: Tue, 25 Jun 2024 12:01:30 +0600 Subject: [PATCH] Fix completion for port This blames to a40b019, when @floam made some changes to various completions, but this one seems to not quite fit the pattern and had a copy/paste error resulting in using an undeclared variable. Also disable filename completion on port. --- share/completions/port.fish | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/share/completions/port.fish b/share/completions/port.fish index 25b2a4a62..313ece1e9 100644 --- a/share/completions/port.fish +++ b/share/completions/port.fish @@ -1,5 +1,12 @@ #completion for port -complete port -n "__fish_seen_subcommand_from $subcommands" -a '(__fish_print_port_packages)' -d Package +set -l subcommands activate archive build cat cd checksum clean configure \ + contents deactivate dependents deps destroot dir distcheck dmg echo \ + edit extract fetch file gohome info install installed lint list \ + livecheck location load log logfile mirror mdmg mpkg notes outdated \ + patch pkg provides rdependents rdeps reload rev search select \ + selfupdate setrequested setunrequested sync test unarchive uninstall \ + unload unsetrequested upgrade url usage variants version work +complete port -f -n "__fish_seen_subcommand_from $subcommands" -a '(__fish_print_port_packages)' -d Package complete port -f -n __fish_use_subcommand -a activate -d 'Set version of a port to active' complete port -f -n __fish_use_subcommand -a archive -d "Create image for port without installing"