mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-12 08:33:45 +08:00
de47a096e8
[ci skip]
7 lines
201 B
Fish
7 lines
201 B
Fish
function __fish_is_nth_token
|
|
set -l n $argv[1]
|
|
set -l tokens (commandline -poc)
|
|
set -l tokens (string replace -r --filter '^([^-].*)' '$1' -- $tokens)
|
|
test (count $tokens) -eq "$n"
|
|
end
|