Created
February 13, 2012 13:43
-
-
Save sourcerebels/1817050 to your computer and use it in GitHub Desktop.
Unix > Bash > Aliases
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
# Editor | |
export EDITOR=gvim | |
# Java, Groovy & Grails SDK and tools configuration | |
export JAVA_HOME=/opt/java | |
export GROOVY_HOME=/opt/groovy | |
export GRAILS_HOME=/opt/grails | |
export GRADLE_HOME=/opt/gradle | |
export M2_HOME=/opt/maven | |
# Add executables to path | |
PATH=$HOME/bin:$PATH | |
PATH=$JAVA_HOME/bin:$PATH | |
PATH=$M2_HOME/bin:$PATH | |
PATH=$GROOVY_HOME/bin:$PATH | |
PATH=$GRAILS_HOME/bin:$PATH | |
PATH=$GRADLE_HOME/bin:$PATH | |
export PATH | |
# Aliases | |
# | |
# wks Go to Workspace directory | |
# vi Launch GVim editor | |
alias wks='cd $HOME/Workspace' | |
alias vi='gvim' | |
# PS1 | |
# Two lined PS1 (bash shell prompt) with git branch | |
# See: https://gist.github.com/1703092 | |
export PS1='\e[34m[\t] \u:\w\e[m $(__git_ps1 "\[\e[31m\](%s)\[\e[0m\]")\n$ ' | |
# Ruby version manager | |
if [ -f $HOME/.rvm/scripts/rvm ]; then | |
source $HOME/.rvm/scripts/rvm | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment