Minor tweaks of init files
darcs-hash:20060121211239-ac50b-02fc95b123698b972063c2cd1cd8e85d548e1f8b.gz
This commit is contained in:
parent
f2d6ae3220
commit
74fb5bd5e5
@ -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
|
||||||
|
11
init/fish.in
11
init/fish.in
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user