Setup zsh new user template
[cacert-puppet.git] / sitemodules / profiles / files / base / newuser.zshrc.recommended
1 # Set up the prompt
2
3 autoload -Uz promptinit
4 promptinit
5 prompt fire
6
7 setopt histignorealldups sharehistory
8
9 # Use emacs keybindings even if our EDITOR is set to vi
10 bindkey -e
11
12 # Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
13 HISTSIZE=1000
14 SAVEHIST=1000
15 HISTFILE=~/.zsh_history
16
17 # Use modern completion system
18 autoload -Uz compinit
19 compinit
20
21 zstyle ':completion:*' auto-description 'specify: %d'
22 zstyle ':completion:*' completer _expand _complete _correct _approximate
23 zstyle ':completion:*' format 'Completing %d'
24 zstyle ':completion:*' group-name ''
25 zstyle ':completion:*' menu select=2
26 eval "$(dircolors -b)"
27 zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
28 zstyle ':completion:*' list-colors ''
29 zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
30 zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
31 zstyle ':completion:*' menu select=long
32 zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
33 zstyle ':completion:*' use-compctl false
34 zstyle ':completion:*' verbose true
35
36 zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
37 zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'