aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_systemctl_mounts.fish
blob: b3e7dd6abdfa0928adb9528cca0427af8f5826b6 (plain)
1
2
3
4
5
6
7
8
9
function __fish_systemctl_mounts
	if type -q systemctl
		if __fish_contains_opt user
			systemctl --user list-unit-files --no-legend --type=mount ^/dev/null | cut -f 1 -d ' '
		else
			systemctl list-unit-files --no-legend --type=mount ^/dev/null | cut -f 1 -d ' '
		end
	end
end