forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zshrc
executable file
·82 lines (58 loc) · 2.17 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="rbates"
DISABLE_AUTO_UPDATE="true"
DISABLE_LS_COLORS="true"
#export PYTHONSTARTUP=$HOME/.dotfiles/pythonstartup.py
#export PYTHONPATH="/Library/Python/2.7/site-packages:$PYTHONPATH"
plugins=(git github bundler brew gem rbates django osx pip cake)
export PATH="/usr/local/bin:/Users/lucasvo/Code/taulia/gradle-1.8/bin:$PATH"
# added by Anaconda 1.6.1 installer
export PATH="/Users/lucasvo/anaconda/bin:$PATH"
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:/opt/local/lib:/usr/local/Cellar/openssl/1.0.1e/lib:$DYLD_LIBRARY_PATH
source $ZSH/oh-my-zsh.sh
source /Library/PostgreSQL/9.2/pg_env.sh
# for Homebrew installed rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
setopt append_history no_inc_append_history no_share_history
# ZSH outputs errors for the ls * command if you don't disable the nomatch output
function auto_activate {
SEARCHPATH=`pwd`
function activate_env {
unsetopt nomatch 2>/dev/null
ls $SEARCHPATH/*/bin/activate > /dev/null 2> /dev/null
if [ "$?" = '0' ]; then
deactivate > /dev/null 2> /dev/null
source $SEARCHPATH/*/bin/activate
return
else
SEARCHPATH=$(dirname "$SEARCHPATH")
if [ "$SEARCHPATH" = "/" ]; then
return
fi
activate_env
return $?
fi
}
unset $SEARCHPATH
activate_env
setopt nomatch
}
alias tmux="TERM=xterm-256color tmux"
function imux {
tmux ls
read "session?Session: "
tmux attach -t $session
}
alias t=imux
alias autoactivate="auto_activate"
alias aa="autoactivate"
alias gc="git commit -m"
alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin
alias pipr="pip install -r requirements.txt --upgrade"
export JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=512m -Xmx1536M -server -Dorg.terracotta.quartz.skipUpdateCheck=true"
export GRADLE_OPTS="-Dorg.gradle.daemon=true -Xmx1024m -Xms512m -XX:MaxPermSize=512m"
export FPATH="$FPATH:/opt/local/share/zsh/site-functions/"
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!!
[[ -s "/Users/lucasvo/.gvm/bin/gvm-init.sh" ]] && source "/Users/lucasvo/.gvm/bin/gvm-init.sh"