mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00: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 changed files with 1 additions and 1 deletions
|
@ -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 a new issue