From afc9eb7f0d6ca2f62e44de902e4f675a21fa0dc5 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 15 Sep 2007 10:44:30 +0200 Subject: [PATCH] /etc/zsh/zshrc: unalias utf2iso and iso2utf only it it is set --- debian/changelog | 6 ++++++ etc/zsh/zshrc | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index e96c0d9..4a01ec4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-etc-core (0.3.25) unstable; urgency=low + + * /etc/zsh/zshrc: unalias utf2iso and iso2utf only it it's set. + + -- Michael Prokop Sat, 15 Sep 2007 10:44:11 +0200 + grml-etc-core (0.3.24) unstable; urgency=low [ Frank Terbeck ] diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 4555b7a..0f43289 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -809,7 +809,7 @@ ${BLUE}%n${NO_COLOUR}@%m %40<...<%B%~%b%<< %# " alias term2iso="echo 'Setting terminal to iso mode' ; print -n '\e%@'" alias term2utf="echo 'Setting terminal to utf-8 mode'; print -n '\e%G'" - unalias utf2iso # make sure it is not assigned yet + type utf2iso &>/dev/null && unalias utf2iso # make sure it is not assigned yet utf2iso() { if isutfenv ; then for ENV in $(env | command grep -i '.utf') ; do @@ -818,7 +818,7 @@ ${BLUE}%n${NO_COLOUR}@%m %40<...<%B%~%b%<< %# " fi } - unalias iso2utf # make sure it is not assigned yet + type iso2utf &>/dev/null && unalias iso2utf # make sure it is not assigned yet iso2utf() { if ! isutfenv ; then for ENV in $(env | command grep -i '\.iso') ; do -- 2.1.4