Created
December 30, 2014 11:50
-
-
Save dvbeato/cae8ebc8efd78ae4283d to your computer and use it in GitHub Desktop.
bash_profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # PS1="\n\e[0;36m[\u@\h \A]\e[m:\W\e[0;36m\$ \e[m" | |
| # folders | |
| export DEVELOPMENT=$HOME/Development | |
| export ENVIROMENT=$DEVELOPMENT/env | |
| export PROJECTS=$DEVELOPMENT/projects | |
| export LABS=$DEVELOPMENT/labs | |
| # varenvs | |
| export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/ | |
| export MVN_HOME=$ENVIROMENT/maven | |
| export NODE_HOME=$ENVIROMENT/node | |
| export MONGODB_HOME=$ENVIROMENT/mongodb | |
| export MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=256m" | |
| # postgre | |
| export PG_SQL=/Applications/Postgres.app/Contents/Versions/9.3/bin | |
| # path | |
| export PATH=$PG_SQL:$JAVA_HOME/bin:$NODE_HOME/bin:$MONGODB_HOME/bin:$PATH | |
| # git | |
| alias g='git' | |
| alias ga='g add' | |
| alias gl='g log' | |
| alias gs='g status' | |
| alias gpl='g pull' | |
| alias gps='g push' | |
| alias gc='g commit -am' | |
| alias gck='g checkout' | |
| alias gdf='g diff' | |
| alias gdfn='df --name-only' | |
| alias gunstage='g reset HEAD -- ' | |
| alias guname='g config --global user.name' | |
| alias gumail='g config --global user.email' | |
| #rails | |
| alias rr='rake routes' | |
| alias rdbm='rake db:migrate' | |
| alias rgc='rails generate controller' | |
| alias rgm='rails generate model' | |
| alias rs='rails server' | |
| # utils | |
| alias ep='subl ~/.bash_profile' | |
| alias sp='source ~/.bash_profile' | |
| alias pong='ping www.google.com' | |
| alias ll='ls -lha' | |
| # bluesoft | |
| alias cdn='cd $PROJECTS/bluesoft/cdn' | |
| alias erp='cd $PROJECTS/bluesoft/erp' | |
| alias erpp='cd $PROJECTS/bluesoft/erp/erp-parent' | |
| # enviroment | |
| alias projects='cd $PROJECTS' | |
| alias development='cd $DEVELOPMENT' | |
| alias enviroment='cd $ENVIROMENT' | |
| alias labs='cd $LABS' | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment