mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08:00
21 lines
210 B
Fish
21 lines
210 B
Fish
|
|
||
|
function __fish_bind_test2
|
||
|
set -l args
|
||
|
for i in (commandline -poc)
|
||
|
switch $i
|
||
|
case "-*"
|
||
|
|
||
|
case "*"
|
||
|
set args $args $i
|
||
|
end
|
||
|
end
|
||
|
|
||
|
switch (count $args)
|
||
|
case 2
|
||
|
return 0
|
||
|
end
|
||
|
|
||
|
return 1
|
||
|
|
||
|
end
|