forked from shayne/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
localrc
executable file
·90 lines (65 loc) · 2.96 KB
/
localrc
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
83
84
85
86
87
88
89
90
# Idle title should be blank
ZSH_THEME_TERM_TITLE_IDLE=""
pman() { man -t "$@" | open -f -a Preview; }
alias ifab='fab -f ~/code/instagram/server-deploy/fabfile.py'
alias ifap='lifab -P -z 50'
alias pfap='pfab -P -z 50'
alias nt='nosetests'
alias jsonpp='python -m json.tool'
git(){ hub "$@" }
ec2id() { ec2who $@ | cut -f 2 }
ec2ip() { ec2who $@ | cut -f 4 }
ec2rename() { ec2tag -t Name=$2 $(ec2id $1) }
issh() { ec2ssh instaproxy ssh ubuntu@$(ec2host $1) }
alias pg_start='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start'
alias pg_stop='pg_ctl -D /usr/local/var/postgres stop -s -m fast'
alias mysql_start='/usr/local/Cellar/mysql/5.1.47/share/mysql/mysql.server start'
alias mysql_stop='/usr/local/Cellar/mysql/5.1.47/share/mysql/mysql.server stop'
alias mongo_start='mongod run --config /usr/local/Cellar/mongodb/1.6.3-x86_64/mongod.conf'
alias redis_start='redis-server /usr/local/etc/redis.conf'
alias pianobar='killall pianokeys 2>/dev/null; pianokeys && pianobar'
alias r='rails'
alias hibernateon="sudo pmset -a hibernatemode 5"
alias hibernateoff="sudo pmset -a hibernatemode 0"
alias hibernatedefault="sudo pmset -a hibernatemode 7"
export EDITOR="vim"
# emacs terminal keys
bindkey -e
# vi style incremental search
bindkey '^R' history-incremental-search-backward
bindkey '^S' history-incremental-search-forward
bindkey '^P' history-search-backward
bindkey '^N' history-search-forward
# if [[ -n "$SSH_CLIENT" || -n "$SSH2_CLIENT" ]]; then
# eval $(ssh-agent)
# fi
export RUBYOPT='rubygems'
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# Android paths
PATH="$HOME/Android/android-sdk-macosx/tools:$PATH"
PATH="$HOME/Android/android-sdk-macosx/platform-tools:$PATH"
# PATH="$HOME/Android/android-ndk-r7-crystax-4:$PATH"
# PATH="$HOME/Android/android-ndk-r7-crystax-4/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin:$PATH"
# PATH="$HOME/Android/android-ndk-r7-crystax-5.beta2:$PATH"
# PATH="$HOME/Android/android-ndk-r7-crystax-5.beta2/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin:$PATH"
PATH="$HOME/Android/android-ndk-r8b:$PATH"
PATH="$HOME/Android/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin:$PATH"
PATH="$HOME/Android/depot_tools:$PATH"
export PATH
export DISTILLERY_SRC_PATH="$HOME/Code/Instagram/server"
export DISTILLERY_SERVER_HOME="$HOME/Code/Instagram/server"
export DISTILLERY_DEPLOY_HOME="$HOME/Code/Instagram/server-deploy"
export VIRTUALENV_USE_DISTRIBUTE=1
export PATH="$HOME/.pyenv/bin:$PATH"
export VIRTUAL_ENV="$HOME/.pyenv"
export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
if [[ -a /usr/local/Cellar/ec2-api-tools/ ]]; then
export EC2_HOME=$(echo /usr/local/Cellar/ec2-api-tools/**/jars)
fi
if [[ -a /usr/local/Cellar/aws-iam-tools/ ]]; then
export AWS_IAM_HOME=$(echo /usr/local/Cellar/aws-iam-tools/*/jars)
fi
export AWS_CREDENTIAL_FILE=$HOME/.aws-credentials-master
export AWS_KEYPAIR=burbn
# setup ec2 credentials
. prod