REM Installs Square's IntelliJ configs into your user configs. @echo off echo Installing Square IntelliJ configs...
setlocal enableDelayedExpansion
for /D %%iin ("%userprofile%"\.AndroidStudio*) docall :copy_config "%%i" for /D %%iin ("%userprofile%"\.IdeaIC*) docall :copy_config "%%i" for /D %%iin ("%userprofile%"\.IntelliJIdea*) docall :copy_config "%%i"
echo. echo Restart IntelliJ and/or AndroidStudio, go to preferences, and apply 'Square' or 'SquareAndroid'. exit /b
REM sub function for copy config files :copy_config set config_dir=%~1\config echo Installing to "!config_dir!" xcopy /s configs "!config_dir!" echo Done. echo. exit /b