Skip to content

Instantly share code, notes, and snippets.

@jnwelzel
Last active August 11, 2017 15:30
Show Gist options
  • Save jnwelzel/29d94768cae711efc5c5 to your computer and use it in GitHub Desktop.
Save jnwelzel/29d94768cae711efc5c5 to your computer and use it in GitHub Desktop.
$ aliases
export JAVA_HOME=/usr/lib/jvm/java-7-oracle/
export GRAILS_HOME=/home/jwelzel/apps/grails-2.2.4
export PATH=$PATH:$GRAILS_HOME/bin
export IDM_HOME=/home/jwelzel/dev/totvs/identity
export IDM_BIN=$IDM_HOME/backend/build/bin
export PATH=$PATH:$IDM_BIN
# Fluig Identity
alias search='cd $IDM_BIN && sh search_service_start.sh'
alias keystore='cd $IDM_BIN && sh keystore_server_start.sh'
alias rest='cd $IDM_BIN && sh rest_service_start.sh'
alias rmi='cd $IDM_BIN && sh rmistart.sh'
alias adsync='cd $IDM_BIN && sh adsync_service_start.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