From 4b876f9cdf2ffecb4e5510e19d112c4415391134 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 6 Feb 2007 20:19:12 +0100 Subject: [PATCH] /etc/zsh/completion.d/grml-wallpaper: close issue116 --- debian/changelog | 7 +++++++ etc/zsh/completion.d/grml-wallpaper | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) 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' -- 2.1.4