mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 20:16:12 +08:00
Move __fish_ports_dirs into ports completion script
This commit is contained in:
parent
40832f897c
commit
b658b421ad
|
@ -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'
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user