# The following lines were added by compinstall zstyle ':completion:*' completer _complete _ignored zstyle :compinstall filename '/home/david/.zshrc' autoload -Uz compinit compinit # End of lines added by compinstall # Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=100 SAVEHIST=100 setopt autocd extendedglob notify setopt EXTENDED_HISTORY # Write the history file in the ':start:elapsed;command' format. #setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits. setopt SHARE_HISTORY # Share history between all sessions. setopt HIST_IGNORE_DUPS # Do not record an event that was just recorded again. setopt HIST_IGNORE_ALL_DUPS # Delete an old recorded event if a new event is a duplicate. setopt HIST_IGNORE_SPACE # Do not record an event starting with a space. setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history file. setopt HIST_VERIFY # Do not execute immediately upon history expansion. setopt APPEND_HISTORY # append to history file (Default) setopt HIST_NO_STORE # Don't store history commands setopt HIST_REDUCE_BLANKS # Remove superfluous blanks from each command line being added to the history. unsetopt beep nomatch # End of lines configured by zsh-newuser-install # zstyle ':completion:*' completer _expand _complete _correct _approximate _history zstyle ':completion:*' matcher-list '' '' 'l:|=* r:|=*' 'l:|=* r:|=*' zstyle ':completion:*' list-colors '' zstyle ':completion:*' users root zstyle ':completion:*' menu select zstyle :compinstall filename '~/.zshrc' autoload -Uz compinit autoload -U colors && colors compinit setopt auto_menu export LSCOLORS='exExcxdxcxexhxhxhxbxhx' export LS_COLORS='no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32' alias ls='ls -G' alias la='ls -A' alias ll='ls -l' alias solarized='export LSCOLORS=gxfxbEaEBxxEhEhBaDaCaD' alias basiccolor='export LSCOLORS= CxGxGgFxBxgefxBHxfdead' export TZ=Europe/Paris export GREP_COLOR='1;32' export GREP_COLORS='1;32' export GREP_OPTIONS='--color=auto' alias grep='grep --color' alias egrep='egrep --color' alias tounafon='mixer vol=100 pcm=100' alias shutup="service musicpd stop" alias vidoc='vim -c "set fileencoding=latin1"' alias getmails='imapfilter && mutt' alias thereisnoneedtoshout='musicpd && ncmpc' alias mycodes='openssl enc -bf -pbkdf2 -in ~/Dossiers/codes/Codes.enc -d -a | grep \!:1' alias listcodes='openssl enc -bf -pbkdf2 -in ~/Dossiers/codes/Codes.enc -d -a' alias meteo='curl -4 wttr.in/toulouse' alias sante='finger status@dmarec.fr' bindkey '^[[A' up-line-or-search bindkey '^[[B' down-line-or-search bindkey "^R" history-incremental-search-backward bindkey "^A" beginning-of-line bindkey "^E" end-of-line case "${TERM}" in (cons25*|linux) # PLAIN BSD/LINUX CONSOLE bindkey '\e[H' beginning-of-line # HOME bindkey '\e[F' end-of-line # END bindkey '\e[5~' delete-char # DELETE bindkey '[D' emacs-backward-word # ESC+LEFT bindkey '[C' emacs-forward-word # ESC+RIGHT ;; (*rxvt*) # RXVT DERIVATIVES precmd () { print -Pn "\e]0;%T %n@%m %c\a" } bindkey '\e[3~' delete-char # DELETE bindkey '\eOc' forward-word # CTRL+RIGHT bindkey '\eOd' backward-word # CTRL+LEFT # RXVT WORKAROUND FOR screen(1) UNDER urxvt(1) bindkey '\e[7~' beginning-of-line # HOME bindkey '\e[8~' end-of-line # END bindkey '^[[1~' beginning-of-line # HOME bindkey '^[[4~' end-of-line # END ;; (*xterm*) # XTERM DERIVATIVES precmd () { print -Pn "\e]0;%T %n@%m %c\a" } bindkey '\e[H' beginning-of-line # HOME bindkey '\e[F' end-of-line # END bindkey '\e[3~' delete-char # DELETE bindkey '\e[1;5C' forward-word # CTRL+RIGHT bindkey '\e[1;5D' backward-word # CTRL+LEFT # XTERM WORKAROUND FOR screen(1) UNDER xterm(1) bindkey '\e[1~' beginning-of-line # HOME bindkey '\e[4~' end-of-line # END ;; (screen) # GNU SCREEN bindkey '^[[1~' beginning-of-line # HOME bindkey '^[[4~' end-of-line # END bindkey '\e[3~' delete-char # DELETE bindkey '\eOc' forward-word # CTRL+RIGHT bindkey '\eOd' backward-word # CTRL+LEFT bindkey '^[[1;5C' forward-word # CTRL+RIGHT bindkey '^[[1;5D' backward-word # CTRL+LEFT ;; esac #if [ -n "${SSH_AGENT_PID}" ]; then # echo "SSH session: ${SSH_AGENT_PID} / ${SSH_AUTH_SOCK}" # ssh-add ${HOME}/.ssh/llanura #fi # [ "${TTY}" = "/dev/ttyv1" ] && exec top -s1 # COLOR PROMPT cSRV="%F{magenta}" cUSR="%F{green}%B" cPMT="" cTIM="%F{cyan}%B" cPWD="%F{magenta}%B" cSTD="%b%f" export PS1="$cSRV%m$cSTD $cUSR%n$cSTD $cPWD%~$cSTD $cPMT%#$cSTD " export PS2="$cSTD $cUSR>$cSTD $cPWD" export EDITOR=vim export PAGER=less export BLOCKSIZE=K export NNTPSERVER=news.gegeweb.org export EMAIL=david@dmarec.fr export VISUAL=${EDITOR}