]> git.friedersdorff.com Git - max/dotfiles.git/blob - zshrc
Add background to xinitrc.
[max/dotfiles.git] / zshrc
1 #!/bin/zsh
2
3 # zsh config file
4
5 # Completion
6 autoload -U compinit
7 compinit
8
9 zstyle ':completion:*:descriptions' format '%U%B%d%b%u'
10 zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'
11
12 # Correction - zsh will correct mispelt commands
13 setopt correctall
14
15 # Prompt - Set prompt to gentoo
16 autoload -U promptinit
17 promptinit
18 autoload -U colors && colors
19
20 autoload -Uz vcs_info
21 precmd () { vcs_info }
22 setopt prompt_subst
23
24 zstyle ':vcs_info:*' enable git
25 zstyle ':vcs_info:*' formats "%s-[%b]"
26 PROMPT="%F{green}%n@%m%k %B%F{blue}%3~ %# %b%f%k"
27 RPROMPT="%B%F{blue} \${vcs_info_msg_0_} %(?..%F{red}<%?>)"
28
29 # Command history
30 export HISTSIZE=2000
31 export HISTFILE="$HOME/.zsh_history"
32 export SAVEHIST=$HISTSIZE
33 bindkey "^[[A" history-search-backward
34 bindkey "^[[B" history-search-forward
35
36 setopt hist_ignore_all_dups
37 setopt hist_ignore_space
38
39 # Misc
40 setopt autocd
41
42 export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
43 [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"