# GOTO Your Home directory
cd /home/diego/.gradle
touch init.gradle
vim init.gradle
allprojects {
apply plugin: 'eclipse'
apply plugin: 'idea'
}
Now in any project you can do $gradle eclipse or $gradle idea. This also works for ./gradlew scripts.
https://discuss.gradle.org/t/global-settings-for-a-number-of-different-projects/5385