From bf7a07dc3445d872c62279b0a5d717f751db0192 Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 28 Jul 2014 12:57:45 +0400 Subject: [PATCH] added some iconv aliases for the convinience, long overdue --- bashrc | 7 +++++-- zshrc | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bashrc b/bashrc index 9752cce..7c29a95 100644 --- a/bashrc +++ b/bashrc @@ -67,11 +67,14 @@ alias cower='command cower -c' alias pacman='command pacman --color=auto' alias rscreen='command screen -Dr' alias atmux='command tmux attach' -alias iconvwk='command iconv -c -f cp1251 -t koi8-r' -alias iconvuk='command iconv -c -f utf-8 -t koi8-r' alias hist='fc -l 1' alias beep='echo -en "\007"' alias fixterm='echo "^[c"' +# iconv: +alias iconvwk='command iconv -c -f cp1251 -t koi8-r' +alias iconvuk='command iconv -c -f utf-8 -t koi8-r' +alias iconvku='command iconv -c -f koi8-r -t utf-8' +alias iconvwu='command iconv -c -f cp1251 -t utf-8' # grc: if [[ -x /usr/bin/grc ]]; then alias ping='command grc --colour=auto ping' diff --git a/zshrc b/zshrc index 1a58147..7d21bd2 100644 --- a/zshrc +++ b/zshrc @@ -75,11 +75,14 @@ alias cower='command cower -c' alias pacman='command pacman --color=auto' alias rscreen='command screen -Dr' alias atmux='command tmux attach' -alias iconvwk='command iconv -c -f cp1251 -t koi8-r' -alias iconvuk='command iconv -c -f utf-8 -t koi8-r' alias hist='fc -l 1' alias beep='echo -en "\007"' alias fixterm='echo "c"' +# iconv +alias iconvwk='command iconv -c -f cp1251 -t koi8-r' +alias iconvuk='command iconv -c -f utf-8 -t koi8-r' +alias iconvku='command iconv -c -f koi8-r -t utf-8' +alias iconvwu='command iconv -c -f cp1251 -t utf-8' # grc - colorize some command outputs if [[ -x /usr/bin/grc ]]; then alias ping='command grc --colour=auto ping'