Код: Выделить всё
tc=$(tput LE 1)
ast () {
case $1 in
\\) ch=\|;;
\|) ch=/;;
/) ch=-;;
-) ch=\\
esac
echo -n $tc$ch
sleep 0.01
[ $((i+=1)) -ne $((4*10)) ] && ast ${ch-/}
}
echo -n 'loading... ( )'
ast
echo
Код: Выделить всё
e_co () {
echo $(tput AF $1)color#$1
}
tc_co () {
[ $((i+=1)) -le $(tput Co) ] && e_co $i && tc_co
}
tc_co
Код: Выделить всё
alias browser=w3m
#alias browser="exec emacs -f w3m"
getopts adfgrtw o
case $o in
a) url="http://anidb.net/perl-bin/animedb.pl?show=animelist&do.search=search&adb.search=";;
d) url="http://en.wiktionary.org/wiki/Special:Search?go=Go&search=";;
f) url="http://www.freebsd.org/cgi/query-pr-summary.cgi?text=";;
g) url="http://www.google.com/search?hl=en&safe=off&num=100&ie=utf-8&oe=utf-8&q=";;
r) url="http://tools.ietf.org/html/rfc";;
t) url="http://tokyotosho.com/search.php?terms=";;
w) url="http://en.wikipedia.org/wiki/Special:Search?go=Go&useskin=chick&search=";;
esac
shift $((OPTIND - 1)); OPTIND=1
keywords="$(echo $* | paste -sd+ -)"
browser "$url$keywords"
Код: Выделить всё
cd ~/local/opera-1772/
eval $(limits -ev120m)
exec ./opera -nomail $@