From: Michael Prokop Date: Tue, 6 Feb 2007 19:19:12 +0000 (+0100) Subject: /etc/zsh/completion.d/grml-wallpaper: close issue116 X-Git-Tag: 0.2.18 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=4b876f9cdf2ffecb4e5510e19d112c4415391134;hp=c5def1541078b09dc0a8749b0ffa032f44007ffd;p=grml-etc-core.git /etc/zsh/completion.d/grml-wallpaper: close issue116 --- diff --git a/debian/changelog b/debian/changelog index a56cb6d..4e16bd7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 diff --git a/etc/zsh/completion.d/grml-wallpaper b/etc/zsh/completion.d/grml-wallpaper index 2a9c940..63efa0d 100644 --- a/etc/zsh/completion.d/grml-wallpaper +++ b/etc/zsh/completion.d/grml-wallpaper @@ -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'