Completions for ports, a tool for port management in CRUX linux

darcs-hash:20070804110916-cbd54-5a9d129b9cfc7bf1b8f09248631ddbfbfc0dda22.gz
This commit is contained in:
Giorgio Lando 2007-08-04 21:09:16 +10:00
parent 04948702e0
commit fa9d00a81a
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#completion for ports
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

@ -0,0 +1,5 @@
# 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