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.
This commit is contained in:
Ryan Patterson 2024-06-25 12:01:30 +06:00 committed by David Adam
parent 4d7ef1fad8
commit 2d9f8547e2

View File

@ -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"