From 4962cc96dbd7d7b253f9e65d495161ae27a08b70 Mon Sep 17 00:00:00 2001 From: Joerg Woelke Date: Thu, 3 Sep 2009 17:50:40 +0200 Subject: [PATCH] zshrc: Turn some returning aliases to functions. cdrecord, 855resolution, debian2hd. Acked-by: Frank Terbeck --- etc/zsh/zshrc | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) 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 <