fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
78c948282
master
1function __fish_canto_using_command 2set -l cmd( commandline -xpc) 3if test ( count $cmd ) -gt 1 4if test $argv [ 1 ] = $cmd [ 2 ] 5return 0 6end 7if test count$argv -gt 2 8if test $argv [ 2 ] = $cmd [ 2 ] 9return 0 10end 11end 12end 13return 1 14end 15 16complete -f -c canto -s h -l help -d'Show Help' 17complete -f -c canto -s v -l version -d'Show version' 18complete -f -c canto -s u -l update -d'Update before running' 19complete -f -c canto -s l -l list -d'List feeds' 20complete -f -c canto -s a -l checkall -d'Show number of new items' 21 22complete -f -c canto -s n -l checknew -d'Show number of new items for feed' 23complete -f -c canto -n'__fish_canto_using_command -l --checknew' -d Feed -a'(command canto -l)' 24 25complete -c canto -s o -l opml -d'Print conf as OPML' 26complete -c canto -s i -l import -d'Import from OPML' 27complete -f -c canto -s r -l url -d'Add feed' 28 29complete -c canto -s D -l dir -d'Set configuration directory' 30complete -c canto -s C -l conf -d'Set configuration file' 31complete -c canto -s L -l log -d'Set client log file' 32complete -c canto -s F -l fdir -d'Set feed directory' 33complete -c canto -s S -l sdir -d'Set script directory'