mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-02 05:39:46 +08:00
b4b52b8234
This is an unwise assumption, both for en_US and UTF-8; the fallback C locale should be used instead.
31 lines
489 B
Fish
31 lines
489 B
Fish
#
|
|
# Init file for fish
|
|
#
|
|
|
|
#
|
|
# Some things should only be done for login terminals
|
|
#
|
|
|
|
if status --is-login
|
|
|
|
# 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 test "$TERM" = linux
|
|
if expr "$LANG" : ".*\.[Uu][Tt][Ff].*" >/dev/null
|
|
if which unicode_start >/dev/null
|
|
unicode_start
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|