fish-shell/share/functions/__fish_bind_test1.fish
2010-09-18 10:18:26 +08:00

27 lines
302 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