Enable color in console for Gradle in Cygwin+bash+mintty.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 17 Apr 2018 22:47:13 +0300
changeset 891 0b73115730eb
parent 890 96b4250c52f8
child 892 5bb386e5dbf6
Enable color in console for Gradle in Cygwin+bash+mintty.
.env
--- a/.env	Tue Mar 27 00:11:01 2018 +0300
+++ b/.env	Tue Apr 17 22:47:13 2018 +0300
@@ -68,7 +68,11 @@
 
 export PYTHONSTARTUP=$HOME/.pystartup
 
-export GRADLE_OPTS='-Dorg.gradle.daemon=true'
+GRADLE_OPTS='-Dorg.gradle.daemon=true'
+if [[ $OSTYPE = cygwin ]]; then
+    GRADLE_OPTS="$GRADLE_OPTS -Dorg.gradle.console=verbose"
+fi
+export GRADLE_OPTS
 
 if [[ ! :$PATH: =~ :$HOME/.npm-packages/bin: ]]; then
   export PATH=$PATH:$HOME/.npm-packages/bin