# comments invited ! setopt noflowcontrol # don't freeze the terminal with Ctrl-S setopt no_beep # history HISTSIZE=200 # length of the history file (where the last entered commands are recorded) HISTFILE=~/.zsh_history # name of the history file SAVEHIST=200 # mandatory to make history work setopt hist_ignore_dups # Avoid duplicating older command in the history # prompt setopt prompt_percent # enable fancy prompt # customization of the prompt: rank of the current command, current folder PS1=$'%{\e[1;31m%}%! %~%(!.#.>)%{\e[0m%}' # at end of line on the prompt line: return code (0 if no error), time RPROMPT=$'%{\e[1;31m%}%? %*%{\e[0m%}' PS1=$'%(!.%{\e[4m%}.)'$PS1 # if we're root, have an underlined prompt PS1=$PS1$'%{\e]0;%m\007%}' # print the host name (%m) in the title bar ###################################################################### # aliases alias ls='ls --color=auto --human-readable' alias ll="ls -l" alias la='ls -lA' alias scp="scp -2" alias 'cd..'='cd ..' alias cp='cp -i' alias mv='mv -i' alias df='df --human-readable' alias md=mkdir ###################################################################### # completion autoload -U compinit compinit -i ${HOME}/.zcompdump zstyle ':completion:*' insert-unambiguous true zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*' menu select=0 setopt auto_list #Automatically list choices on an ambiguous completion setopt auto_param_slash # Add a slash after a completed directory name setopt auto_param_keys ###################################################################### # environement variables export OCAMLRUNPARAM=b # long life to OCaml ! export CVS_RSH="ssh" export CVSEDITOR=pico # editor used by cvs # export CVSROOT=cvs.sourceforge.net:/cvsroot/myproject export GS_OPTIONS="-sPAPERSIZE=a4" ###################################################################### # misc options setopt complete_aliases # Completion options setopt complete_in_word setopt correct # Try to correct the spelling of commands, using dvorak examination setopt numeric_globsort # sort numerically instead of lexicographically