2005-09-20 13:31:55 +00:00
|
|
|
#
|
|
|
|
# Init file for fish
|
|
|
|
#
|
2006-02-04 13:09:14 +00:00
|
|
|
# @configure_input@
|
2005-09-20 13:31:55 +00:00
|
|
|
|
2006-02-17 10:13:39 +00:00
|
|
|
#
|
2006-03-14 00:09:14 +00:00
|
|
|
# Set default search paths for completions and shellscript functions
|
2006-02-17 10:13:39 +00:00
|
|
|
#
|
|
|
|
|
2006-07-18 16:41:55 +00:00
|
|
|
set -g fish_function_path ~/.fish.d/functions @sysconfdir@/fish.d/functions @datadir@/fish/functions
|
|
|
|
set -g fish_complete_path ~/.fish.d/completions @sysconfdir@/fish.d/completions @datadir@/fish/completions
|
2006-02-17 10:13:39 +00:00
|
|
|
|
2005-09-20 13:31:55 +00:00
|
|
|
#
|
|
|
|
# Set default field separators
|
|
|
|
#
|
|
|
|
|
2005-10-25 09:39:45 +00:00
|
|
|
set -g IFS \ \t\n
|
2005-09-20 13:31:55 +00:00
|
|
|
|
2006-03-10 13:40:39 +00:00
|
|
|
#
|
2006-03-14 00:09:14 +00:00
|
|
|
# Some things should only be done for login terminals
|
2006-03-10 13:40:39 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
if status --is-login
|
2006-03-14 00:09:14 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Set some value for LANG if nothing was set before, and this is a
|
|
|
|
# login shell.
|
|
|
|
#
|
|
|
|
|
2006-03-10 13:40:39 +00:00
|
|
|
if not set -q LANG >/dev/null
|
|
|
|
set -gx LANG en_US.UTF-8
|
|
|
|
end
|
|
|
|
|
2006-03-14 00:09:14 +00:00
|
|
|
# Check for i18n information in
|
|
|
|
# /etc/sysconfig/i18n
|
|
|
|
|
2006-03-10 13:40:39 +00:00
|
|
|
if test -f /etc/sysconfig/i18n
|
|
|
|
eval (cat /etc/sysconfig/i18n |sed -ne 's/^\([a-zA-Z]*\)=\(.*\)$/set -gx \1 \2;/p')
|
|
|
|
end
|
|
|
|
|
2006-03-14 00:09:14 +00:00
|
|
|
#
|
|
|
|
# Put linux consoles in unicode mode.
|
|
|
|
#
|
2005-09-20 13:31:55 +00:00
|
|
|
|
2006-03-14 00:09:14 +00:00
|
|
|
if expr "$LANG" : ".*\.[Uu][Tt][Ff].*" >/dev/null
|
|
|
|
if test "$TERM" = linux
|
|
|
|
if which unicode_start >/dev/null
|
|
|
|
unicode_start
|
|
|
|
end
|
2006-03-10 13:51:29 +00:00
|
|
|
end
|
2005-09-20 13:31:55 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
# There are variables that contain colons that are not arrays. This
|
|
|
|
# reverts them back to regular strings.
|
|
|
|
#
|
|
|
|
|
|
|
|
for i in DISPLAY
|
2005-11-02 16:49:13 +00:00
|
|
|
if set -q $i
|
2005-09-20 13:31:55 +00:00
|
|
|
set -- $i (printf ":%s" $$i|cut -c 2-)
|
|
|
|
end
|
2005-09-26 12:33:06 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
# Load additional initialization files
|
|
|
|
#
|
|
|
|
|
|
|
|
for i in fish.d/*.fish
|
|
|
|
. $i
|
|
|
|
end
|