Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$ aliases
export JAVA_HOME=/usr/lib/jvm/java-7-oracle/
export GRAILS_HOME=/home/jwelzel/apps/grails-2.2.4
export IDM_HOME=/home/jwelzel/dev/totvs/identity
export IDM_BIN=$IDM_HOME/backend/build/bin
# Fluig Identity
alias search='cd $IDM_BIN && sh'
alias keystore='cd $IDM_BIN && sh'
alias rest='cd $IDM_BIN && sh'
alias rmi='cd $IDM_BIN && sh'
alias adsync='cd $IDM_BIN && sh'
alias frontend='cd $IDM_HOME/frontend'
alias backend='cd $IDM_HOME/backend'
# Git
alias pull='git pull'
alias status='git status'
alias xclip='xclip -selection c'
export PS1='\[\e[01;30m\]\t`if [ $? = 0 ]; then echo "\[\e[32m\] ✔ "; else echo "\[\e[31m\] ✘ "; fi`\[\e[00;37m\]\u\[\e[01;37m\]:`[[ $(git status 2> /dev/null | head -n2 | tail -n1) != "# Changes to be committed:" ]] && echo "\[\e[31m\]" || echo "\[\e[33m\]"``[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] || echo "\[\e[32m\]"`$(__git_ps1 "(%s)\[\e[00m\]")\[\e[01;34m\]\w\[\e[00m\]\$ '
# Misc
alias ...='cd ../../..'
alias buildbe='cd $IDM_HOME/backend && git pull && mvn clean -Dmaven.test.skip=true package -Pall-jars'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.