autoload -U compinit compinit -D autoload colors && colors autoload zcalc #zstyle ':completion:*' menu yes select setopt INC_APPEND_HISTORY HIST_IGNORE_DUPS HIST_IGNORE_ALL_DUPS HIST_REDUCE_BLANKS HIST_IGNORE_SPACE HIST_NO_STORE HIST_VERIFY setopt EXTENDED_HISTORY HIST_SAVE_NO_DUPS HIST_EXPIRE_DUPS_FIRST HIST_FIND_NO_DUPS APPEND_HISTORY PROMPT="%~ %(#.%{$bg[red]%}.%{$fg[green]%})%n%{$reset_color%}@%m%(?.%{$fg[green]%}.%{$bg[red]%}) >%{$reset_color%} " HISTFILE=~/.zsh-history SAVEHIST=5000 export TERM=xterm-256color eval `dircolors` alias ls='ls --color=auto' zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} case $TERM in xterm*|rxvt) precmd () { print -Pn "\e]0;%n@%m: %~\a" } preexec () { print -Pn "\e]0;%n@%m: $1\a" } ;; screen) precmd () { print -Pn "\033k%~\033\\" } preexec () { print -Pn "\033k$1\033\\" } ;; esac