summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-10-17 18:45:57 +0200
committerDaniel Friesel <derf@finalrewind.org>2012-10-17 18:45:57 +0200
commitec907b8442d09e083245c62a9a4c9095aeb09760 (patch)
treee541b25b17155859080f6e214029ab64c9d82f06 /etc
parent52f05f60c098ff172a572364acbd0c9bbf0457c7 (diff)
add dump-zstyle
Diffstat (limited to 'etc')
-rw-r--r--etc/functions/dump-zstyle12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/functions/dump-zstyle b/etc/functions/dump-zstyle
new file mode 100644
index 0000000..bdcb142
--- /dev/null
+++ b/etc/functions/dump-zstyle
@@ -0,0 +1,12 @@
+local names patterns styles
+
+zstyle -g names
+for name in $names; do
+ zstyle -g patterns $name
+ for pattern in $patterns; do
+ zstyle -g styles $name $pattern
+ for style in $styles; do
+ echo "$name $pattern $style"
+ done
+ done
+done