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