Skip to content
Newer
Older
100644 28 lines (20 sloc) 579 Bytes
eb72ed1 @derdon initial commit
authored
1 # enable completion
2 autoload -U compinit && compinit
3
4 # enable color support (useful for fancy prompts)
5 autoload -U colors && colors
6
7 # include useful VCS information in the prompt
8 autoload -Uz vcs_info
9
10 source ~/.zsh/options
11 source ~/.zsh/aliases
12
13 export EDITOR=mvim
14 export PAGER=less
15
16 HISTFILE=~/.zsh_history
17 SAVEHIST=10000
18 HISTSIZE=12000
19
20 precmd() {
21 psvar=()
22 vcs_info
23 [[ -n $vcs_info_msg_0_ ]] && psvar[1]="$vcs_info_msg_0_"
24 }
25
26 trailing_color=$( [[ `whoami` == 'root' ]] && echo 'red' || echo 'green' )
27 PS1="%F{magenta}%~%f%(1v.%F{green}%1v%f.)%F{$trailing_color}%#%f "
Something went wrong with that request. Please try again.