# default prompt PROMPT="$(print '%{\e[0;31m%}.:%{\e[1;30m%}%B[%{\e[1;34m%}%~%{\e[1;30m%}]%b%{\e[0;31m%}:.%{\e[0m%}') " # prompt for right side of screen RPROMPT="$(print '%{\e[1;30m%}%B[%{\e[1;34m%}%*%{\e[1;30m%}]%b%{\e[0m%}')" #Titelzeile des Terminalfensters case $TERM in xterm*) precmd () {print -Pn "\e]0;%n@%m: %~\a"} ;; esac #keep history file between sessions HISTSIZE=1000 SAVEHIST=1000 HISTFILE=~/.history setopt APPEND_HISTORY #for sharing history between zsh processes setopt INC_APPEND_HISTORY #spelling correction setopt CORRECT #automagically go to a directory, eg type $/etc and hit enter, zsh will chage to /etc setopt AUTO_CD #don' beep setopt NO_BEEP setopt nocheckjobs # don't warn me about bg processes when exiting setopt nohup # and don't kill them, either #global aliases, use with e.g. cd .... alias -g '...'='../..' alias -g '....'='../../..' alias -g '.....'='../../../..' #activate zsh's mighty completions autoload -U compinit; compinit setopt COMPLETE_IN_WORD # case-insensitive -> partial-word (cs) -> substring completion: # http://zsh.dotsrc.org/Guide/zshguide06.html zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' # farbige menuauswahl und spezielle auswahl mit strg+space im menĂ¼ # http://zsh.dotsrc.org/Guide/zshguide06.html#l149 zmodload -i zsh/complist zstyle ':completion:*' menu select=1 zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} bindkey -M menuselect '^@' accept-and-infer-next-history # enable color support of ls and also add handy aliases if [ "$TERM" != "dumb" ]; then eval "`dircolors -b`" alias ls='ls --color=auto' #alias dir='ls --color=auto --format=vertical' #alias vdir='ls --color=auto --format=long' fi # some more ls aliases alias ll='ls -oah' alias df="df -h" #alias for editing .zshrc :-D alias zshrc="vi ~/.zshrc" #associate .odt files with openoffice, etc. alias -s odt=oowriter alias -s tgz="tar -xzf" alias -s tar.gz="tar -xzvf" alias -s bz2="tar -xjvf" alias -s png=gqview alias -s jpg=gqview alias -s gif=gqview alias -s sxw=oowriter alias -s doc=oowriter #define shich characters belong to a word, note that / is missing, so Ctrl+W will handle paths correctly WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'