3 ### Zsh session things.
6 case ${INSIDE_EMACS+t},$TERM in t,dumb) unsetopt zle ;; esac
10 ###--------------------------------------------------------------------------
13 __mdw_set_prompt_hacks () {
15 linux*|screen*|xterm*|vt100*|eterm*)
17 gitcolour=%F{cyan} rccolour=%F{red} uncolour=%f
20 host=%m dir=" %(6~!%-1~/.../%5~!%~)"
24 __mdw_source_if_exists /usr/lib/git-core/git-sh-prompt
25 __mdw_set_prompt_pieces
26 precmd_functions+=(__mdw_precmd)
27 preexec_functions+=(__mdw_preexec)
30 ###--------------------------------------------------------------------------
33 autoload -U select-word-style
34 select-word-style bash
37 ###--------------------------------------------------------------------------
40 ## Initialize the fancy completion machinery.
44 ## Contexts: :completion:FUNCTION:COMPLETER:COMMAND:ARGUMENT:TAG
45 zstyle ':completion:*' completer _expand _complete _ignored _approximate
46 zstyle ':completion:*' insert-unambiguous false
47 zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
48 zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
49 zstyle ':completion:*' matcher-list '' '+m:{[:lower:]}={[:upper:]} r:|[._-]=** r:|=**' '+l:|=* r:|=*'
50 zstyle ':completion:*' max-errors 0 numeric
51 zstyle ':completion:*' original true
52 zstyle ':completion:*' verbose false
53 zstyle ':completion:*:*:git*:*' verbose true
55 _r () { words[1]=sudo; _normal; }
59 ###--------------------------------------------------------------------------
60 ### Other shell tweaking.
62 HISTFILE=~/.zsh-history
69 unsetopt bash_auto_list
76 unsetopt menu_complete
86 ###--------------------------------------------------------------------------
87 ### Finishing touches.
89 __mdw_source_if_exists "$HOME/.zshrc-local"
91 ###----- That's all, folks --------------------------------------------------