Minor tweaks of init files

darcs-hash:20060121211239-ac50b-02fc95b123698b972063c2cd1cd8e85d548e1f8b.gz
This commit is contained in:
axel 2006-01-22 07:12:39 +10:00
parent f2d6ae3220
commit 74fb5bd5e5
3 changed files with 14 additions and 5 deletions

View File

@ -170,7 +170,7 @@ AC_TRY_LINK([#if HAVE_LIBINTL_H]
if test "$have__nl_msg_cat_cntr" = yes; then if test "$have__nl_msg_cat_cntr" = yes; then
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
AC_DEFINE([HAVE__NL_MSG_CAT_CNTR], [1], AC_DEFINE([HAVE__NL_MSG_CAT_CNTR], [1],
[Define to 1 if the _nl_msg_cat_cntr synbol is exported.]) [Define to 1 if the _nl_msg_cat_cntr symbol is exported.])
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
fi fi

View File

@ -32,10 +32,9 @@ for i in $path_list
end end
# #
# Set some value for LANG if nothing was set before # Set some value for LANG if nothing was set before, and this is a
# login shell. Also check for i18n information in /etc/sysconfig/i18n
# #
if status --is-login if status --is-login
@ -72,6 +71,12 @@ for i in DISPLAY
end end
end end
#
# Alias for gettext (or a fallback if gettext isn't installed) This
# needs to be defined here and not in fish_function.fish, since it is
# used by other init files.
#
if which gettext >/dev/null ^/dev/null if which gettext >/dev/null ^/dev/null
function _ -d "Alias for the gettext command" function _ -d "Alias for the gettext command"
gettext fish $argv gettext fish $argv

View File

@ -40,7 +40,7 @@ end
# @SYSCONFDIR@/fish_inputrc. # @SYSCONFDIR@/fish_inputrc.
# #
for i in ~/.fish_inputrc @SYSCONFDIR@/fish_inputrc ~/etc/fish_inputrc /etc/fish_inputrc ~/.inputrc /etc/inputrc for i in ~/.fish_inputrc @SYSCONFDIR@/fish_inputrc ~/.inputrc /etc/inputrc
if test -f $i if test -f $i
set -xg INPUTRC $i set -xg INPUTRC $i
break break
@ -119,5 +119,9 @@ if command ls --color=auto --help 1>/dev/null 2>/dev/null
end end
#
# Remove temporary functions
#
functions -e set_default_color functions -e set_default_color
functions -e set_exported_default functions -e set_exported_default