Move __fish_ports_dirs into ports completion script

This commit is contained in:
Jason 2019-12-03 18:53:16 +09:00 committed by Fabian Homborg
parent 40832f897c
commit b658b421ad
2 changed files with 3 additions and 7 deletions

View File

@ -1,8 +1,9 @@
#completion for ports
function __fish_ports_dirs -d 'Obtain a list of ports local collections'
ls /usr/ports
end
complete -f -c ports -s u -l update -a '(__fish_ports_dirs)' -d 'Update ports'
complete -f -c ports -s l -l list -d 'List ports'
complete -f -c ports -s d -l diff -d 'List version diffs between local and installed ports'
complete -f -c ports -s v -l version -d 'Print version'
complete -f -c ports -s h -l help -d 'Print help'

View File

@ -1,5 +0,0 @@
# a function to print a list of ports local collections
function __fish_ports_dirs -d 'Obtain a list of ports local collections'
ls /usr/ports
end