-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
63 lines (45 loc) · 1.36 KB
/
zshrc
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export skip_global_compinit=1
# Path to your oh-my-zsh configuration.
export ZSH_THEME="ashleydev"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
# plugins=(ruby rails git bundler rvm)
# source $ZSH/oh-my-zsh.sh
export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=/usr/sbin:$PATH
#
#zle_highlight=(none)
#
setopt nocheckjobs
setopt nohup
setopt nobeep
setopt extended_glob
setopt multios
KEYTIMEOUT=1
bindkey -rpM viins '\e'
bindkey -v
autoload -U compinit
compinit
setopt prompt_subst
autoload -Uz vcs_info
zstyle ':vcs_info:*' formats ' [%b]'
zstyle ':vcs_info:*' actionformats ' [%b|%F{1}%a%f]'
zstyle ':vcs_info:*' enable git
precmd () { vcs_info }
export EDITOR=$(which vim)
export GIT_EDITOR="$(which vim)"
alias vi=vim
alias serve='python -m SimpleHTTPServer'
if [ `uname` = Darwin ]; then
export PATH=$PATH:/Applications/GitX.app/Contents/Resources/
# The following fixes iTerm issues.
# unix2003 is the default in Terminal.app but not in iTerm it seems.
export COMMAND_MODE=unix2003
fi
# Make sure additional SSH keys will be tried when making SSH connections
for key in $(cd ~/.ssh && ls | grep id_ | grep -v \\.pub$ )
do
keychain --quiet $key
done
source ~/.keychain/$HOST-sh
source $(brew --prefix)/etc/bash_completion.d/git-prompt.sh