about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:29:38 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:29:38 +0000
commita92518a9ed061602bb0b843831c42905546b9a69 (patch)
tree31a28d11b3a4f58db130e749bb07ec76ab3f7c2f /Functions
parent0d39ca3ea8eb2b5f06212edda923ffa0c89188d5 (diff)
downloadzsh-a92518a9ed061602bb0b843831c42905546b9a69.tar.gz
zsh-a92518a9ed061602bb0b843831c42905546b9a69.tar.xz
zsh-a92518a9ed061602bb0b843831c42905546b9a69.zip
moved to ./Functions/Misc/zstyle+
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Misc/zstyle+35
1 files changed, 0 insertions, 35 deletions
diff --git a/Functions/Misc/zstyle+ b/Functions/Misc/zstyle+
deleted file mode 100644
index eb3c14df5..000000000
--- a/Functions/Misc/zstyle+
+++ /dev/null
@@ -1,35 +0,0 @@
-# This makes defining styles a bit simpler by using a single `+' as a
-# special token that allows to append a context name to the previously
-# used context name. Like this:
-#
-#   zstyle+ ':foo:bar' style1 value1 \
-#         + ':baz'     style2 value2 \
-#         + ':frob'    style3 value3
-#
-# This defines style1 with value1 for the context :foo:bar as usual.
-# But it also defines styles2 with value2 for the context :foo:bar:baz
-# and style3 with value3 for :foo:bar:frob.
-# Of course, any of the sub-contexts after the plus signs may be 
-# empty strings to re-use the previous context unchanged.
-#
-# If you don't want to change all your calls to `zstyle' to use
-# `zstyle+' you can use an alias `alias zstyle=zstyle+' and make sure
-# the completion functions are autoloaded without alias expansion (the
-# -U option to the autoload builtin). The completion system normally
-# loads its functions with without alias expansion.
-
-case "$1" in
--*) zstyle "$@";;
-
-*)  setopt localoptions noksharrays
-    integer i
-    local context="$1"
-    1=''
-    for ((i=2; $#; ++i)); do
-      if [[ $i -gt $# || "$argv[i]" == '+' ]]; then
-        zstyle "$context${(@)argv[1,i-1]}"
-        shift "i > $# ? $# : i"  # Stupid shift error on i > $#
-  	i=1
-      fi
-    done;;
-esac