fish-shell/share/functions/__fish_bind_test2.fish

20 lines
277 B
Fish
Raw Normal View History

function __fish_bind_test2
set -l args
for i in (commandline -poc)
switch $i
case "-*"
2010-09-18 10:18:26 +08:00
case "*"
set -a args $i
end
end
switch (count $args)
case 2
return 0
end
return 1
end