PROMPT="%~%(1v.%F{green}%1v%f.)%F{red}%2v%f %% " zstyle ':completion:*' special-dirs true zstyle ':completion:*:*:kill:*' menu yes select zstyle ':completion:*:kill:*' force-list always zmodload -a zsh/complist complist setopt nobeep setopt autocd setopt listpacked setopt listtypes setopt extended_glob setopt always_to_end setopt auto_param_slash setopt append_history setopt share_history setopt hist_ignore_dups setopt inc_append_history setopt extended_history unset correct export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/games:~/etc/bin/ export EMAIL=xeno@thehappy.de export DEBEMAIL=xeno@thehappy.de export DEBFULLNAME="Stefan Ritter" export QUILT_PATCHES=debian/patches export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index" HISTSIZE=1000 SAVEHIST=1000 HISTFILE=~/.zsh_history autoload -U compinit; compinit autoload zmv autoload -Uz vcs_info precmd() { psvar=() vcs_info [[ -n $vcs_info_msg_0_ ]] && psvar[1]="$vcs_info_msg_0_" if [ "$(quilt applied 2> /dev/null)" ]; then psvar[2]="(quilt)" fi } # Shell stuff alias c="clear" alias ls="ls --color=auto" alias l="ls -lah" alias mkdir="mkdir -p" alias rmrf="rm -rf" # General stuff alias g='git' alias gee='geeqie' alias gitserv="git daemon --verbose --reuseaddr --base-path=. --export-all ./.git" alias iso="genisoimage -l -J -R -o cd.iso" alias m="mocp" alias p="pal -r 7" alias q="quilt" alias r="rdesktop-vrdp -k de -K localhost" alias s="screen -r -d" alias t="tmux a" alias tmux='tmux -u' alias v="vim" alias vi="vim" alias vbm="VBoxManage" alias httpd="python -m SimpleHTTPServer" # Debian stuff alias agu="sudo apt-get update" alias agdu="sudo apt-get dist-upgrade" alias acs="apt-cache search" alias agi="sudo apt-get install" alias as="apt-cache show" alias purge="sudo apt-get --purge autoremove" # Fedora stuff alias yi="sudo yum install" alias yr="sudo yum remove" alias ys="yum search" # Arch stuff alias pi="sudo pacman -S" alias pss="pacman -Ss" alias pu="sudo pacman -Syu" alias pr="sudo pacman -Rs" # VCS stuff alias svn-uscan='uscan --verbose --force-download --rename --repack --destdir=../tarballs' alias svn-bp='svn-buildpackage --svn-builder=pdebuild --svn-ignore-new' alias gendebpool='dpkg-scanpackages -m . /dev/null | gzip -9c > Packages.gz' alias git-bp='git-buildpackage --git-ignore-new --git-tarball-dir=/home/xeno/debian/tarballs/ --git-upstream-branch=upstream --git-debian-branch=master --git-builder=pdebuild --debbuildopts "-i"' alias sfnv='uscan --verbose --no-symlink --rename' alias avalon='telnet avalon.mud.de 7777' alias -g C='| wc -l' alias -g G='| grep' alias -g H='| head' alias -g T='| tail' alias -g L='| less' alias -s jpg=geeqie shot() { if [ "$1" != '' ]; then scrot -c -d 3 $1 scp $1 xeno:www/pub/ rm $1 else scrot -c -d 3 fi } md() { mkdir $1 cd $1 } automon() { vga=$(xrandr -q | while read line; do if [[ $line =~ ^VGA1.*$ ]] { echo $line | cut -d " " -f 2 }; done) if [[ $vga = "disconnected" ]] { xrandr --output LVDS1 --auto --output VGA1 --off } else { xrandr --output LVDS1 --off --output VGA1 --auto } } case $TERM in rxvt*) precmd () {print -Pn "\e]0;%n@%m: %~\a"} ;; esac