eval `dircolors` eval `lesspipe` alias ls='ls --color=auto -vF' alias quake='nq-glx +set snd_output oss' alias fdr='fakeroot debian/rules' alias cvsdiff="cvs diff | grep '^\( \|@\|-\|+\|diff\)'" alias ren='noglob zmv -W' alias autofuck='aclocal && autoheader && libtoolize --copy --automake && automake --copy --add-missing && autoconf' alias gpg="gnome-gpg" bindkey -e emacs # press M-CR to accept and keep the completion going bindkey '\e^M' accept-and-menu-complete XTITLE="%n@%m:%~" precmd() { [[ -t 1 ]] || return case $TERM in xterm) print -Pn "\e]2;$XTITLE\a" ;; esac } # http://lists.debian.org/debian-user/2003/debian-user-200307/msg02678.html ssh() { _call_sshadd "$@" command ssh "$@" } slogin() { _call_sshadd "$@" command slogin "$@" } scp() { _call_sshadd "$@" command scp "$@" } #make () { # command make "$@" | makefilter #} # sudo dpkg -i the newest packages assuming one just built them sdi () { test -d debian || exit 1 v=$(dpkg-parsechangelog | grep ^Version | cut -f2 -d' ') a=$(dpkg-architecture -qDEB_BUILD_ARCH) sudo dpkg -i ../*${v}_${a}.deb sudo dpkg -i ../*${v}_all.deb } #preexec() { # [[ -t 1 ]] || return # case $TERM in # xterm) # whence -v $1 | read stupid1 stupid2 stupid3 stupid4 cmdtype # if [[ $cmdtype != builtin ]]; then # print -Pn "\e]2;$XTITLE $1\a" # fi # ;; # esac #} autoload -U compinit && compinit #hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts <$HOME/.ssh/known_hosts2)"}:#[0-9]*}%%\ *}%%,*}) hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\ *}%%,*}) zstyle ':completion:*:hosts' hosts $hosts