public
Description: /bin/zsh and loving it
Homepage: http://stephencelis.com/archive/2008/10/ez-does-it-gemdoc
Clone URL: git://github.com/stephencelis/dotfiles.git
dotfiles / zsh / config
100644 47 lines (36 sloc) 1.084 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# setenv() { export $1=$2 }
 
autoload -U colors
colors
setopt PROMPT_SUBST
export PROMPT='%{${bg[grey]}%}%{${fg[blue]}%}%3~%{${fg[green]}%}$(git_info_for_prompt) %{${fg[red]}%}→ %{${fg[default]}%}%{${bg[default]}%}'
export RPROMPT=""
 
export LSCOLORS="Exfxcxdxbxegedabagacad"
 
export PATH=/usr/local/bin:/usr/local/jruby/bin:/usr/local/mysql/bin:/usr/local/checker-0.155:$PATH
export MANPATH=/usr/local/man:$MANPATH
export CODEPATH=~/Documents/Code
export GEMPATH=`gem env gemdir`
 
# export VISUAL="mate -w"
# export EDITOR="vim"
 
fpath=(~/.zsh/functions $fpath)
autoload -U ~/.zsh/functions/*(:t)
 
HISTFILE=~/.zsh_history
HISTSIZE=1000
SAVEHIST=1000
 
setopt EXTENDED_HISTORY
setopt APPEND_HISTORY
# setopt INC_APPEND_HISTORY SHARE_HISTORY
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_REDUCE_BLANKS
 
setopt AUTO_CD
setopt COMPLETE_IN_WORD
setopt LOCAL_OPTIONS
# setopt LOCAL_TRAPS
setopt MULTIOS
setopt NO_BG_NICE
setopt NO_LIST_BEEP
setopt RM_STAR_WAIT
 
unsetopt NO_HUP
 
bindkey '^A' beginning-of-line
bindkey '^E' end-of-line
bindkey '^[[5D' backward-word
bindkey '^[[5C' forward-word