-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
64 lines (50 loc) · 1.77 KB
/
bash_profile
File metadata and controls
64 lines (50 loc) · 1.77 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# path
export PATH="/usr/local/bin:$PATH:~/bin"
export PATH=$PATH:"/usr/local/sbin"
alias op="open *.tmproj || mate ."
alias dbrep='mysql -ureadonly -pdevR3@donly -h10.112.120.42'
# TextMate
# alias op="open *.tmproj || mate ."
alias st='open -a "/Applications/Sublime Text 2.app"'
# let more key combos get through iterm to vim, etc.
# http://groups.google.com/group/iterm2-discuss/browse_thread/thread/47700851d59386fb?pli=1
stty -ixon
# vim
export EDITOR="vim"
alias v="vim"
# autotest
alias bat="bundle exec autotest --no-full-after-failed"
# bundler
alias be="bundle exec"
alias bo="bundle open"
# temporary directory
alias tmp="mkdir -p ~/tmp; cd ~/tmp"
# Git aliases
alias gst="git status"
alias ga="git add"
alias gc="git commit"
alias gdv="git diff | view -"
alias gdcv="git diff --cached | view -"
# brew & ruby(gems?)
export RUBYLIB="`brew --prefix`/lib:$RUBYLIB"
# node.js
export NODE_PATH="/usr/local/lib/node:/usr/local/lib/node_modules"
# bash completion (required for __git_ps1 to work)
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# color
export CLICOLOR=1
# prompt
color_yellow="\[\e[0;33m\]"
color_green="\[\e[0;32m\]"
color_red="\[\e[0;31m\]"
color_foreground="\[\e[0m\]"
export PS1="${color_yellow}\h${color_foreground}:${color_green}\W${color_red}\$(__git_ps1 '(%s)')${color_foreground}\\$ "
# EC2 API Tools (brew install ec2-api-tools)
export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
export EC2_PRIVATE_KEY="$(/bin/ls $HOME/.ec2/pk-*.pem 2>/dev/null)"
export EC2_CERT="$(/bin/ls $HOME/.ec2/cert-*.pem 2>/dev/null)"
export EC2_HOME="/usr/local/Cellar/ec2-api-tools/1.4.2.2/jars"
# Ruby Version Machine
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.