aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_no_arguments.fish
blob: e47a42726987354c6c525d11f81691c5b9fbce1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

function __fish_no_arguments -d "Internal fish function"
	set -l cmd (commandline -poc) (commandline -tc)
	set -e cmd[1]
	for i in $cmd
		switch $i
			case '-*'
				 
			case '*'
				 return 1
		end
	end
	return 0
end