mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-23 13:11:15 -03: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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user