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

#
# Alias for gettext (or a fallback if gettext isn't installed)
#

set -l path (which gettext ^/dev/null)
if test -x (echo $path)
	function _ --description "Alias for the gettext command"
		gettext fish $argv
	end
else
	function _ --description "Alias for the gettext command"
		printf "%s" $argv
	end
end