aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_is_token_n.fish
blob: d2129e2672e4bb0aff4e0a7d2ce18537773cfa4b (plain)
1
2
3
4
5
6
7
8
9
10
function __fish_is_token_n --description 'Test if current token is on Nth place' --argument n
	set -l num (count (commandline -poc))
	#if test $cur
	expr $n = $num + 1 > /dev/null
	#else
	#expr $n '=' $num + 1 > /dev/null
	#end


end