Skip to content

Instantly share code, notes, and snippets.

@sourcerebels
Created February 13, 2012 13:43
Show Gist options
  • Save sourcerebels/1817050 to your computer and use it in GitHub Desktop.
Save sourcerebels/1817050 to your computer and use it in GitHub Desktop.
Unix > Bash > Aliases
# 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