mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Move __fish_ports_dirs into ports completion script
This commit is contained in:
parent
40832f897c
commit
b658b421ad
2 changed files with 3 additions and 7 deletions
|
@ -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 a new issue