# Ray's .zshrc # Note that completions for dpkg-deb, mutt, mount, and dupload are # included as part of the new completion system. See docs for details. # Zsh settings # TODO # - completions for dpkg-deb # - completions for lintian # - completions for dupload # - completions for nm # - completions for objdump # - completions for mount # - completion for man -l bindkey -e # Emacs-style commandline editing case "$TERM" in linux) # Linux console bindkey '\e[1~' beginning-of-line # Home bindkey '\e[4~' end-of-line # End bindkey '\e[3~' delete-char # Del bindkey '\e[2~' overwrite-mode # Insert # bindkey '\e[A' up-line-or-history # cursor up # bindkey '\e[B' down-line-or-history # cursor down # bindkey '\e[C' forward-char # cursor right # bindkey '\e[D' backward-char # cursor left ;; screen) # The textmode window manager # In Linux console bindkey '\e[1~' beginning-of-line # Home bindkey '\e[4~' end-of-line # End bindkey '\e[3~' delete-char # Del bindkey '\e[2~' overwrite-mode # Insert bindkey '\e[7~' beginning-of-line # home bindkey '\e[8~' end-of-line # end # In rxvt bindkey '\eOc' forward-word # ctrl cursor right bindkey '\eOd' backward-word # ctrl cursor left bindkey '\e[3~' backward-delete-char # This should not be necessary! # bindkey '\e[A' up-line-or-history # cursor up # bindkey '\e[B' down-line-or-history # cursor down # bindkey '\e[C' forward-char # cursor right # bindkey '\e[D' backward-char # cursor left ;; rxvt) bindkey '\e[7~' beginning-of-line # home bindkey '\e[8~' end-of-line # end bindkey '\eOc' forward-word # ctrl cursor right bindkey '\eOd' backward-word # ctrl cursor left bindkey '\e[3~' backward-delete-char # This should not be necessary! bindkey '\e[2~' overwrite-mode # Insert ;; xterm*) bindkey '\e[H' beginning-of-line # Home bindkey '\e[F' end-of-line # End bindkey '\e[3~' delete-char # Del bindkey '\e[2~' overwrite-mode # Insert ;; sun) bindkey '\e[214z' beginning-of-line # Home bindkey '\e[220z' end-of-line # End bindkey '^J' delete-char # Del bindkey '^H' backward-delete-char # Backspace bindkey '\e[247z' overwrite-mode # Insert ;; esac #if test "X$TERM" = "Xscreen" || test "X$TERM" = "Xlinux"; then # bindkey '\e[A' up-line-or-history # cursor up # bindkey '\e[B' down-line-or-history # cursor down # bindkey '\e[C' forward-char # cursor right # bindkey '\e[D' backward-char # cursor left #fi # #if test "X$TERM" = "Xscreen" || test "X$TERM" = "Xrxvt"; then # bindkey '\e[7~' beginning-of-line # home # bindkey '\e[8~' end-of-line # end # bindkey '\eOc' forward-word # ctrl cursor right # bindkey '\eOd' backward-word # ctrl cursor left # bindkey '\e[3~' backward-delete-char # This should not be necessary! #fi export DEBEMAIL=jhm@cistron.nl export IRCNICK=JHM export IRCSERVER=irc.nl.openprojects.org eval `lesspipe` alias glimpse='glimpse -z -i -w' # All functions used for defining completion rules start with `c_'. setopt extendedglob # required for some of our completion magic setopt list_types # Put a file type indicator after file names when # completing. setopt correct # Attempt spelling correction on command names only. setopt print_exit_value setopt list_ambiguous setopt bash_auto_list # Make do the right thing. setopt list_packed # Compacter display of completion list. setopt interactive_comments setopt nohup # So backgrounded jobs don't get terminated when # the shell is. # A sensible prompt: # hostname username(underlined) time pwd(bold; max 30 chars.) > or # if test "X$TERM" = "Xscreen"; then # include a hint that screen(1) can use to set window titles. PROMPT='%m %U%n%u %T %B%30<..<%~%b %{