fish-shell/share/functions/__fish_bind_test1.fish
Maxim Gonchar 8224d9f984 A lot of new completions.
Some small updates and fixes of old functions and completions.
2012-06-12 20:19:31 +04:00

25 lines
421 B
Fish

function __fish_bind_test1
set -l args
set -l use_keys no
for i in (commandline -poc)
switch $i
case -k --k --ke --key
set use_keys yes
case "-*"
case "*"
set args $args $i
end
end
switch $use_keys
case yes
switch (count $args)
case 1
return 0
end
end
return 1
end