1
0
Fork 0

added some iconv aliases for the convinience, long overdue

This commit is contained in:
Von Random 2014-07-28 12:57:45 +04:00
parent af48e36cd5
commit bf7a07dc34
2 changed files with 10 additions and 4 deletions

7
bashrc
View file

@ -67,11 +67,14 @@ alias cower='command cower -c'
alias pacman='command pacman --color=auto' alias pacman='command pacman --color=auto'
alias rscreen='command screen -Dr' alias rscreen='command screen -Dr'
alias atmux='command tmux attach' 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 hist='fc -l 1'
alias beep='echo -en "\007"' alias beep='echo -en "\007"'
alias fixterm='echo "^[c"' 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: # grc:
if [[ -x /usr/bin/grc ]]; then if [[ -x /usr/bin/grc ]]; then
alias ping='command grc --colour=auto ping' alias ping='command grc --colour=auto ping'

7
zshrc
View file

@ -75,11 +75,14 @@ alias cower='command cower -c'
alias pacman='command pacman --color=auto' alias pacman='command pacman --color=auto'
alias rscreen='command screen -Dr' alias rscreen='command screen -Dr'
alias atmux='command tmux attach' 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 hist='fc -l 1'
alias beep='echo -en "\007"' alias beep='echo -en "\007"'
alias fixterm='echo "c"' 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 # grc - colorize some command outputs
if [[ -x /usr/bin/grc ]]; then if [[ -x /usr/bin/grc ]]; then
alias ping='command grc --colour=auto ping' alias ping='command grc --colour=auto ping'