mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
4912967eab
- etc/config.fish and share/config.fish are now "universal" and no longer reference install paths or need to be touched by autotools. They've been removed from config.fish.in to config.fish. - fish now attempts to determine __fish_datadir and __fish_sysconfdir relative to the path of the fish executable itself (typically by walking up one directory). This means that you can copy the directory hierarchy around and things will still work. The compiled-in paths are used as a backup. - The fish Xcode project now can build fish natively, without needing autotools. - Version bumped to 2.0
50 lines
749 B
Fish
50 lines
749 B
Fish
#
|
|
# Init file for fish
|
|
#
|
|
|
|
#
|
|
# 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
|
|
|