From 99e0aa3c6494ec14278cc35bce1c4cecb686cdaa Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 7 Feb 2022 12:56:27 -0600 Subject: [PATCH] Clarify fish_is_nth_token description Yes, this does make it longer but it's a very important point. --- share/functions/fish_is_nth_token.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/fish_is_nth_token.fish b/share/functions/fish_is_nth_token.fish index c3f23cf53..907caae71 100644 --- a/share/functions/fish_is_nth_token.fish +++ b/share/functions/fish_is_nth_token.fish @@ -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"