/etc/zsh/completion.d/grml-wallpaper: close issue116 0.2.18
authorMichael Prokop <mika@grml.org>
Tue, 6 Feb 2007 19:19:12 +0000 (20:19 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 6 Feb 2007 19:19:12 +0000 (20:19 +0100)
debian/changelog
etc/zsh/completion.d/grml-wallpaper

index a56cb6d..4e16bd7 100644 (file)
@@ -1,3 +1,10 @@
+grml-etc-core (0.2.18) unstable; urgency=low
+
+  * /etc/zsh/completion.d/grml-wallpaper: allow proper setting
+    of parameters for local directories [Closses: issue116]
+
+ -- Michael Prokop <mika@grml.org>  Tue,  6 Feb 2007 20:17:02 +0100
+
 grml-etc-core (0.2.17) unstable; urgency=low
 
   * zsh config files: fix handling of check for binaries, thanks
index 2a9c940..63efa0d 100644 (file)
@@ -1,4 +1,11 @@
-  grml-wallpaper() { Esetroot -scale /usr/share/grml/$* }
+  grml-wallpaper() { 
+    if [ -f /usr/share/grml/"$1" ] ; then
+       Esetroot -scale /usr/share/grml/"$1"
+    else
+       Esetroot -scale $*
+    fi
+  }
+
   _grml-wallpaper() {
     dirs=(. /usr/share/grml/)
     _description files expl 'set desktop wallpaper on grml system'