export PATH=$PATH:/usr/local/bin:/opt/local/bin
alias hide='echo -en "\033]50;nil2\007"'
alias tiny='echo -en "\033]50;-misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1\007"'
alias small='echo -en "\033]50;6x10\007"'
alias default='echo -e "\033]50;-misc-fixed-medium-r-semicondensed--13-*-*-*-*-*-iso10646-1\007"'
alias medium='echo -en "\033]50;-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1\007"'
alias large='echo -en "\033]50;-misc-fixed-medium-*-*-*-15-*-*-*-*-*-iso10646-1\007"'
alias larger='echo -en "\033]50;-misc-fixed-medium-r-normal--18-*-*-*-*-*-iso10646-1\007"'
alias huge='echo -en "\033]50;-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1\007"'
alias normal=default
if [ "$TERM" = "xterm" ] && [ "$LINES" -ge 50 ] && [ "$COLUMNS" -ge 100 ]; then
large
fi
setopt nonomatch
alias df='df -h -x none'
alias free='free -m'
alias cls=clear
(ls --help 2>/dev/null |grep -- --color=) >/dev/null && \
alias ls='ls -b -CF --color=auto'
alias l=ls
alias dir='ls -lha'
alias du='du -h'
alias f=finger
alias edit=$EDITOR
alias e=$EDITOR
alias ftp=lftp
alias md=mkdir
alias ruptime='ruptime -rt'
alias rd=rmdir
alias k=killall
alias mtr='mtr --curses'
[[ -x =reportbug ]] && alias bug='reportbug -b --no-check-available -x -M --mode=expert'
alias slrn='slrn -n'
alias menu=pdmenu
alias xchat='xchat -C'
alias stardate='date "+%y%m.%d/%H%M"'
if [[ -x =ytalk ]]; then
alias ytalk='ytalk -x'
alias talk=ytalk
fi
if [[ -e /proc/acpi ]]; then
alias apm=acpi
fi
[[ -x =time ]] && alias time='command time'
alias dch="dch -p -D UNRELEASED"
alias bc='bc -l -q'
alias ytalk='ytalk -x'
alias bottomlight="echo bottomlight: on >!/proc/cpia/video0; echo toplight: off >!/proc/cpia/video0"
alias toplight="echo toplight: on >!/proc/cpia/video0; echo bottomlight: ff >!/proc/cpia/video0";
alias nolight="echo toplight: off >!/proc/cpia/video0; echo bottomlight: off >!/proc/cpia/video0"
alias bothlights="echo toplight: on >!/proc/cpia/video0; echo bottomlight: on >!/proc/cpia/video0"
alias slow='longrun -f economy; longrun -s 0 50; longrun -p'
alias fast='longrun -f performance; longrun -s 0 100; longrun -p'
alias full='longrun -f performance; longrun -s 100 100; longrun -p'
alias eview='echo "eview? No"'
alias mf='echo "Er, if you want mv, type mv; if you want mf, I pity you."'
calc () { echo $* |bc -l }
@ () { finger @$1 }
if [[ "$USER" != root ]]; then
alias cardctl='sudo cardctl'
alias fetchnews='sudo fetchnews'
fi
setopt nomatch
coreprompt="%n@%m"
if [ ! -e /etc/zsh.extraprompt ]; then
baseprompt="$coreprompt:%~"
else
baseprompt="$coreprompt(`cat /etc/zsh.extraprompt`):%~"
fi
case $TERM in
xterm|color_xterm|screen)
PROMPT="%{]0;$baseprompt%}$baseprompt> "
preexec () {
print -nP '\033]0;'
print -nP "$coreprompt: "
print -nPR "%60>...>${(V)1//\%/%%}"
print -n '\007'
if [ "$TERM" = screen ]; then
print -nP '\033k%'
print -nPR "%60>...>${(V)1//\%/%%}"
print -n '\033\\'
fi
}
if [ "$TERM" = screen ]; then
PROMPT="%{kzsh\\%}$PROMPT"
fi
;;
*) PROMPT="$baseprompt>"
;;
esac
unset baseprompt
[[ UID -eq 0 ]] && PROMPT=${PROMPT/\}%n/\}%U%n%u}
limit core 0
umask 022
setopt nopromptcr
setopt correct
setopt autolist automenu nobeep
setopt autocd
setopt noclobber noflowcontrol
setopt print_exit_value
setopt list_packed
unsetopt bgnice
setopt share_history
setopt csh_junkie_history
setopt hist_ignore_dups
setopt hist_allow_clobber
setopt hist_reduce_blanks
[[ $TERM == "xterm" ]] && bindkey -e
stty erase "^?"