Closed
Closed
Conversation
| end | ||
| end | ||
| # Remove trailing whitespace and pipe into cache file | ||
| port echo all | awk '{$1=$1};1' >$cache_file |
| return 0 | ||
| end | ||
|
|
||
| function __fish_port_use_package --description 'Test if port command should have packages as potential completion' |
| @@ -0,0 +1,115 @@ | |||
| #completion for port | |||
|
|
|||
| function __fish_port_no_subcommand --description 'Test if port has yet to be given the subcommand' | |||
| complete -f -n '__fish_port_no_subcommand' -c port -a 'version' --description 'Print the MacPorts version' | ||
| complete -f -n '__fish_port_no_subcommand' -c port -a 'work' --description 'Displays the path to the work directory for portname' | ||
|
|
||
| complete -c apt-get -s v --description 'Verbose mode, generates verbose messages' |
|
|
||
| complete -c port -n '__fish_port_use_package' -a '(__fish_print_packages)' --description 'Package' | ||
|
|
||
| complete -f -n '__fish_port_no_subcommand' -c port -a 'activate' --description 'Set the status of an previously installed version of a port to active' |
| complete -f -n '__fish_port_no_subcommand' -c port -a 'rev-upgrade' --description 'Manually check for broken binaries and rebuild ports containing broken binaries' | ||
| complete -f -n '__fish_port_no_subcommand' -c port -a 'search' --description 'Search for a port using keywords' | ||
| complete -f -n '__fish_port_no_subcommand' -c port -a 'select' --description 'For a given group, selects a version to be the default by creating appropriate symbolic links' | ||
| complete -f -n '__fish_port_no_subcommand' -c port -a 'selfupdate' --description 'Upgrade MacPorts itself and update the port definition files.' |
| complete -f -n '__fish_port_no_subcommand' -c port -a 'test' --description 'Run test phase of a port' | ||
| complete -f -n '__fish_port_no_subcommand' -c port -a 'unarchive' --description 'Extract the destroot of the given ports from a binary archive' | ||
| complete -f -n '__fish_port_no_subcommand' -c port -a 'uninstall' --description 'Remove a previously installed port' | ||
| complete -f -n '__fish_port_no_subcommand' -c port -a 'unload' --description 'A shortcut to launchctl, like load, but unloads the daemon' |
| end | ||
| # Remove trailing whitespace and pipe into cache file | ||
| printf "all\ncurrent\nactive\ninactive\ninstalled\nuninstalled\noutdated" >$cache_file | ||
| port echo all | awk '{$1=$1};1' >>$cache_file & |
zanchey
added this to the
fish-3.0 milestone
github-actions
Bot
locked as resolved and limited conversation to collaborators