Friday, March 9, 2018

Some Java Dev Bash Aliases

Below are some aliases that can be added to your ~/.bash_profile that I've found useful.  These aliases would be used for Git, Gradle, and IntelliJ, and for completeness are run on a mac.

alias gc='git clone'
alias gp='echo "-> pulling from git" && git pull'

#gradle and idea
alias gw='./gradlew'
alias gwci='echo "-> cleaning idea" && ./gradlew clean idea --refresh-dependencies'
alias gwcb='echo "-> clean build" && ./gradlew clean build --refresh-dependencies'
alias gwca='echo "-> clean assemble" && ./gradlew clean assemble --refresh-dependencies'
alias oi='echo "-> opening intellij" && open $(find ./ -iname "*.ipr")'
alias gwcio='gwci && oi'

alias gpci='gp && gwcio'


  1. Well, first of all, greetings with tuning in! To be frank, I had no experience with this before, but if I were you, I would have attempted to optimize the code a bit. Me also fresh new to java actually, because you know, they always say that it's the easiest language to start your journey with. I had to look through a lot of materials of theories in order to learn java because it's tne only one resource among all I'd to deal with that actually provides information in simple manner, so you can start learning exactly from scratch, with zero background. But truth be told, I had not enough practice to say some words of matter on your piece of code, so all I can do here is to try it out by myself