function precmd () { case $TERM in xterm*|Eterm|rxvt*|dtterm) echo -ne "\033]0;${USER}@${HOST}\007"; ;; *) ;; esac } function google () { lynx -dump 'http://www.google.com/search?client=googlet&q='"$1" } PS1="[%m:%~]\$ " PS2='> ' limit coredumpsize 0 export PAGER=less bindkey -e umask 022 export EDITOR="emacs" export VISUAL="emacs" # Autocomplete for current dir on filetypes compctl -g '*.Z *.gz *.tgz' + -g '*' zcat gunzip compctl -g '*.tar.Z *.tar.gz *.tgz *.tar.bz2' + -g '*' tar compctl -g '*.zip *.ZIP' + -g '*' unzip zip compctl -g '*.(mp3|MP3|ogg|OGG)' + -g '*(-/)' mpg123 xmms hosts=(enzo.ece.gatech.edu yamsrv1.ece.gatech.edu yamsrv2.ece.gatech.edu kingkong.ece.gatech.edu yamsrv3.ece.gatech.edu) compctl -k hosts ssh ## aliases # search google/usenet google () { w3m -dump -T text/html "http://www.google.com/search?q="$1""; } ggoogle () { w3m "http://groups.google.com/groups?q="$1""; } # convert decimal to hex function d2h () { echo "obase=16; $*" | bc } function h2d () { echo "ibase=16; $*" | bc } function d2b () { echo "obase=2; $*" | bc } function b2d () { echo "ibase=2; $*" | bc } export CFLAGS='-g -Wall'