aboutsummaryrefslogtreecommitdiffhomepage
path: root/etc
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-03-14 10:09:14 +1000
committerGravatar axel <axel@liljencrantz.se>2006-03-14 10:09:14 +1000
commitdd8150d98dcdee41afa11c7ed6bd35d304b17f03 (patch)
tree403d0e6a51826d6abf7e6e9d540a897318549b4f /etc
parent99662d7711c5926c1d0513f180031b0fd4d41df4 (diff)
Minor comment and documentation changes
darcs-hash:20060314000914-ac50b-63c49a59804f51c4dd19de574db41298b1ef67c5.gz
Diffstat (limited to 'etc')
-rw-r--r--etc/fish.in35
-rw-r--r--etc/fish_interactive.fish.in7
2 files changed, 27 insertions, 15 deletions
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