fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian BoehmReformat share/**.fish with newlines collapsed78c948282

master
1.2 KiB33 linesraw
1function __fish_canto_using_command
2    set -l cmd (commandline -xpc)
3    if test (count $cmd) -gt 1
4        if test $argv[1] = $cmd[2]
5            return 0
6        end
7        if test count $argv -gt 2
8            if test $argv[2] = $cmd[2]
9                return 0
10            end
11        end
12    end
13    return 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'