mitry /.bash_aliases

Bash aliases
# @(#) ~mitry/.bash_aliases - Bash aliases
# $Id: .bash_aliases,v 5ffe477dd0a2 2010/03/19 05:43:04 mitry $

function aas { echo "alias $1='!!'" >> ~/.bash_aliases ;}
alias alais=alias

function man { command lynx "http://bama.ua.edu/cgi-bin/man-cgi?$*" ;}
#function man { command curl -qs "http://bama.ua.edu/cgi-bin/man-cgi?$*" | less ;}

if [ -e /usr/bin/which ]; then
unalias which 2> /dev/null
function which () { (alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@ ;}
else
alias which='type -P'
fi

#alias bye=exit
alias bye=logout

alias ll='msys-ls -Fhl --color=auto'
alias ls='msys-ls -Fh --color=auto'
#alias make='mingw32-make'
#alias lynx='lynx -nolist -force_html -display_charset=windows-1251'
alias play='/opt/mplayer/mplayer -quiet'
alias todo='/bin/todo.sh'
#alias 2do='sed -nr "s/^[ ]+(\[_\])/\1/p" ~/diary/*/*/*.cal|sort|uniq'

alias when='/c/usr/perl/bin/perl.exe c:/usr/perl/bin/when.pl'
alias rem='remind -ms+ ~/.remind'

alias mkisofs='mkisofs -D -U -J -iso-level 4 -jcharset cp1251 -hide-joliet-trans-tbl -nobak -duplicates-once'
alias cdrecord='cdrecord -overburn -tao dev=1,1,0 driveropts=burnfree'

## Weather info from gismeteo.ru
alias weather='curl -qs http://informer.gismeteo.ru/text/26063-1.JS|sed -e "s/[^<]*//;s/[^>]*$//;s/\(<[^>]*>\)\+/\n/g"|sed -e "1d;/^GISMETEO/,+2d"'

#alias ins="sudo apt-get install"
#alias tw="~/.bashrc.d/twitter.sh"

alias pwgen='echo $( tr -dc A-Za-z0-9_ < /dev/urandom | head -c8 )'

## calendar with the current date marked:
#alias cal='cal | sed "s/^/ /;s/$/ /;s/ \($(date +%e)\) /[\1]/"'
alias cal='cal -m | grep --color=auto -E "( |^)$(date +%e)( |$)|$"'
alias tree='find . -type d | sed -e "s/[^-][^\/]*\//  |/g;s/|\([^ ]\)/|-\1/"'

#mwiki () { blah=`echo | sed -e 's/ /_/g'`; dig +short txt ${@// /_/}.wp.dg.cx; }
#mwiki () { dig +short txt ${@// /_}.wp.dg.cx; }