blob: c6069bde13bd6f73cf8aca12f33d6d863c60f47d (
plain)
1
2
3
4
5
|
function __fish_is_token_n --description 'Test if current token is on Nth place' --argument n
# Add a fake element to increment without calling math
set -l num (count (commandline -poc) additionalelement)
test $n -eq $num
end
|