blob: b1c03fd6a85c67debe898edc7ce8a2cfa0bf430b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
function __fish_complete_abook_formats --description 'Complete abook formats'
set -l pat
switch $argv[1]
case in
set pat '/output:/,$d; /input:\|^$/d'
case out
set pat '/input:/,/output:/d; /^$/d'
case '*'
return 1
end
abook --formats | sed -e $pat -e 's/^\s\+//'
end
|