mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 01:12:48 +08:00
Clarify fish_is_nth_token description
Yes, this does make it longer but it's a very important point.
This commit is contained in:
parent
8d386a27f3
commit
99e0aa3c64
|
@ -1,4 +1,4 @@
|
|||
function fish_is_nth_token --description 'Test if current token is on Nth place' --argument-names n
|
||||
function fish_is_nth_token --description 'Test if current token is the Nth (ignoring command and switches/flags)' --argument-names n
|
||||
set -l tokens (commandline -poc)
|
||||
set -l tokens (string replace -r --filter '^([^-].*)' '$1' -- $tokens)
|
||||
test (count $tokens) -eq "$n"
|
||||
|
|
Loading…
Reference in New Issue
Block a user