-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
40 lines (34 loc) · 1.15 KB
/
bashrc
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
alias ll='ls -la'
alias r='rails'
alias rs='bundle exec rspec --drb --color'
alias gb='git branch'
alias gc='git checkout'
alias gs='git status'
alias ga='git add'
alias gc='git commit'
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
function precmd() {
PROMPT="\h@\u:\W\$(parse_git_branch) \$ "
}
function proml {
PS1="\h@\u:\W\$(parse_git_branch) \$ "
}
proml
export JAVA_HOME=/Library/Java/Home
export AWS_RDS_HOME=$HOME/Dropbox/aws/RDSCli-1.4.007
export PATH=$AWS_RDS_HOME/bin:$PATH
export EC2_CERT=$HOME/Dropbox/aws/dev_freebell_net/cert-C7QZZPDKQ4HTSEOANS6GUTK3QXWUWQRS.pem
export EC2_PRIVATE_KEY=$HOME/Dropbox/aws/dev_freebell_net/pk-C7QZZPDKQ4HTSEOANS6GUTK3QXWUWQRS.pem
export EC2_URL=https://ec2.ap-northeast-1b.amazonaws.com
export EC2_REGION=ap-northeast-1
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
# added by travis gem
if [ -d ~/.travis ]; then
source ~/.travis/travis.sh
fi
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion