mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 04:03:39 +08:00
10 lines
423 B
Fish
10 lines
423 B
Fish
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'
|