/
zshrc
46 lines (35 loc) · 1.28 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
ZSHA_BASE=$HOME/.zsh-antigen
source $ZSHA_BASE/antigen/antigen.zsh
antigen-use oh-my-zsh
antigen-bundle git
if [ "$OSTYPE"="darwin11.0" ]; then
antigen-bundle osx
fi
antigen-bundle zsh-users/zsh-syntax-highlighting
antigen-bundle zsh-users/zsh-history-substring-search
antigen-bundle $ZSHA_BASE/bundles/git-completion
antigen-bundle $ZSHA_BASE/bundles/stv
#antigen-bundle $ZSHA_BASE/bundles/virtualenv
antigen-theme $ZSHA_BASE/themes mgdm
antigen-apply
export CDPATH=$CDPATH:$HOME/Sites:$HOME
export PATH=$HOME/.rbenv/bin:$HOME/bin:/opt/homebrew/bin:$HOME/.composer/vendor/bin:/usr/local/mysql/bin:$PATH
export VMWWW=/Volumes/www/html
export VMPHP=/Volumes/www/phpapps
export EDITOR=vim
if [ -d $HOME/.rbenv ]; then
eval "$(rbenv init -)"
fi
if [ -d $HOME/.phpbrew ]; then
source $HOME/.phpbrew/bashrc
fi
if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then
source /usr/local/bin/virtualenvwrapper.sh
export WORKON_HOME=$HOME/Code/VirtualEnvs
fi
alias pretty='pygmentize -g -O encoding=utf-8'
alias glp="git log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
if [ -f /opt/homebrew/bin/src-hilite-lesspipe.sh ]; then
export LESSOPEN="| /opt/homebrew/bin/src-hilite-lesspipe.sh %s"
export LESS=' -R '
fi