X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=0f43289dfc8c8cf51bf80d3b38c55c7499600e99;hb=afc9eb7f0d6ca2f62e44de902e4f675a21fa0dc5;hp=4555b7a91bff78f80ee3cb6c72d2ad1c7e99b3c2;hpb=c1afcaa08e987526577593d4a1b20e7efd34ac39;p=grml-etc-core.git 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