#
# Init file for fish
#

#
# Set default field separators
#

set IFS \ \t\n

#
# Add a few common directories to path, if they exists. Note that pure
# console programs like makedep often live in /usr/X11R6/bin, so we
# want this even for text-only terminals.
#

for i in /bin /usr/bin /usr/X11R6/bin 
	if test -d $i
	   	if echo $PATH|grep $i >/dev/null
	   	else
			set PATH $PATH $i
		end
	end
end

#
# Set some value for LANG if nothing was set before
#

if test ! $LANG
	set -gx LANG en_US.UTF-8
end

#
# Put linux console in unicode mode. Should this be done in any other
# situation as well?
#

if test linux = $TERM
	unicode_start ^/dev/null
end

#
# Load additional initialization files
#

if test -d fish.d
# If this file is installed in /etc, the subdirectory is called fish.d
	for i in fish.d/*.fish
		. $i
	end
else
	if test -d .fish.d
	# If this file is installed in ~, the subdirectory is called .fish.d
		for i in .fish.d/*.fish
			. $i
		end
	end
end

