aboutsummaryrefslogtreecommitdiffhomepage
path: root/etc
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-03-06 07:26:01 +1000
committerGravatar axel <axel@liljencrantz.se>2006-03-06 07:26:01 +1000
commit66ee644130af810348262f57ca3cea63bc47f5d2 (patch)
treec0934e4a10c23fde5f2d8238a081df1d0c6cadb5 /etc
parentc20b8982bc416019a36e1bd742e65da279e35652 (diff)
Make the functions for setting default values use gobal values if universal variables are broken
darcs-hash:20060305212601-ac50b-075bc6976435e5bd86151603cb8f0fc634c542bb.gz
Diffstat (limited to 'etc')
-rw-r--r--etc/fish_interactive.fish.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/etc/fish_interactive.fish.in b/etc/fish_interactive.fish.in
index c54a5fa3..1caef740 100644
--- a/etc/fish_interactive.fish.in
+++ b/etc/fish_interactive.fish.in
@@ -45,9 +45,12 @@ end
# Set various color values
#
-function set_default -d "Set an exported universal variable, unless it has already been set"
+function set_default -d "Set an universal variable, unless it has already been set"
if not set -q $argv[1]
- set -Ux -- $argv
+ set -U -- $argv
+ end
+ if not set -q $argv[1]
+ set -g -- $argv
end
end
@@ -55,6 +58,9 @@ function set_exported_default -d "Set an exported universal variable, unless it
if not set -q $argv[1]
set -Ux -- $argv
end
+ if not set -q $argv[1]
+ set -gx -- $argv
+ end
end