From: Joerg Woelke Date: Thu, 3 Sep 2009 15:50:40 +0000 (+0200) Subject: zshrc: Turn some returning aliases to functions. X-Git-Tag: v0.3.75~6 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=4962cc96dbd7d7b253f9e65d495161ae27a08b70;p=grml-etc-core.git zshrc: Turn some returning aliases to functions. cdrecord, 855resolution, debian2hd. Acked-by: Frank Terbeck --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 2f69b22..c30b112 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2325,12 +2325,17 @@ if check_com -c grep-status ; then fi # if cdrecord is a symlink (to wodim) or isn't present at all warn: -if [[ -L /usr/bin/cdrecord ]] || ! check_com -c cdrecord ; then - if check_com -c wodim ; then - alias cdrecord="echo 'cdrecord is not provided under its original name by Debian anymore. +if [[ -L /usr/bin/cdrecord ]] || ! check_com -c cdrecord; then + if check_com -c wodim; then + cdrecord() { + cat <