aboutsummaryrefslogtreecommitdiffhomepage
path: root/etc/config.fish.in
blob: 5e4ed67b390f04f4dcd780a5a020b637f872ccfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# Init file for fish
#
# @configure_input@

#
# Some things should only be done for login terminals
#

if status --is-login

	#
	# Set some value for LANG if nothing was set before, and this is a
	# login shell.
	#

	if not set -q LANG >/dev/null
		set -gx LANG en_US.UTF-8
	end

	# Check for i18n information in
	# /etc/sysconfig/i18n

	if test -f /etc/sysconfig/i18n
		eval (cat /etc/sysconfig/i18n |sed -ne 's/^\([a-zA-Z]*\)=\(.*\)$/set -gx \1 \2;/p')
	end

	#
	# Put linux consoles in unicode mode.
	#

	if expr "$LANG" : ".*\.[Uu][Tt][Ff].*" >/dev/null
		if test "$TERM" = linux
			if which unicode_start >/dev/null
				unicode_start
			end
		end
	end
end

#
# Load additional initialization files
#

if test -d include
	for i in include/*.fish
		. $i
	end
end