From dd8150d98dcdee41afa11c7ed6bd35d304b17f03 Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 14 Mar 2006 10:09:14 +1000 Subject: Minor comment and documentation changes darcs-hash:20060314000914-ac50b-63c49a59804f51c4dd19de574db41298b1ef67c5.gz --- etc/fish.in | 35 ++++++++++++++++++++++------------- etc/fish_interactive.fish.in | 7 +++++-- 2 files changed, 27 insertions(+), 15 deletions(-) (limited to 'etc') diff --git a/etc/fish.in b/etc/fish.in index c2245e96..b05a27dc 100644 --- a/etc/fish.in +++ b/etc/fish.in @@ -4,7 +4,7 @@ # @configure_input@ # -# Set default search paths +# Set default search paths for completions and shellscript functions # set -g fish_function_path ~/.fish.d/functions @SYSCONFDIR@/fish.d/functions @DATADIR@/fish/functions @@ -24,7 +24,10 @@ set -g IFS \ \t\n set -l path_list /bin /usr/bin /usr/X11R6/bin @PREFIX@/bin @optbindirs@ +# # Root should also have the sbin directories in the path +# + if test "$USER" = root set path_list $path_list /sbin /usr/sbin /usr/local/sbin end @@ -39,34 +42,40 @@ end # -# 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 +# 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 -end -# -# Put linux console in unicode mode. Should this be done in any other -# situation as well? -# + # + # Put linux consoles in unicode mode. + # -if expr "$LANG" : ".*\.[Uu][Tt][Ff].*" >/dev/null - if test linux = "$TERM" - if which unicode_start >/dev/null - unicode_start + if expr "$LANG" : ".*\.[Uu][Tt][Ff].*" >/dev/null + if test "$TERM" = linux + if which unicode_start >/dev/null + unicode_start + end end end end - # # There are variables that contain colons that are not arrays. This # reverts them back to regular strings. diff --git a/etc/fish_interactive.fish.in b/etc/fish_interactive.fish.in index 1caef740..69fa1183 100644 --- a/etc/fish_interactive.fish.in +++ b/etc/fish_interactive.fish.in @@ -42,7 +42,7 @@ end # -# Set various color values +# Set various defaults using these throwaway functions # function set_default -d "Set an universal variable, unless it has already been set" @@ -85,7 +85,10 @@ set_default fish_pager_color_completion normal set_default fish_pager_color_description normal set_default fish_pager_color_progress cyan +# # Directory history colors +# + set_default fish_color_history_current cyan @@ -96,7 +99,7 @@ set_default fish_color_history_current cyan set_default CDPATH . ~ # -# Remove temporary functions +# Remove temporary functions for setting default variable values # functions -e set_exported_default -- cgit v1.2.3