Last active
January 14, 2021 14:28
-
-
Save claytonaalves/bd0bd064661af775a1b9688dcbc123c8 to your computer and use it in GitHub Desktop.
Set windows terminal path environment according to param
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| if "%1"=="" ( | |
| echo Informe o ambiente desejado: | |
| echo. | |
| echo tcc - Tiny C | |
| echo msvc - Microsoft C++ | |
| echo fpc - FreePascal | |
| echo d7 - Delphi 7 | |
| echo d10 - Delphi 10 | |
| echo rust | |
| exit /b 1 | |
| ) | |
| :: Windows | |
| PATH C:\Windows | |
| PATH %PATH%;C:\Windows\system32 | |
| PATH %PATH%;C:\Windows\System32\Wbem | |
| PATH %PATH%;C:\Windows\System32\WindowsPowerShell\v1.0\ | |
| :: Tiny C Compiler | |
| if "%1"=="tcc" ( | |
| PATH %PATH%;C:\bin\tcc | |
| ) | |
| :: MSVC | |
| if "%1"=="msvc" ( | |
| REM PATH %PATH%;C:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\Hostx86\x86 | |
| call "C:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars32.bat" | |
| ) | |
| :: Freepascal | |
| if "%1"=="fpc" ( | |
| PATH %PATH%;C:\lazarus\fpc\3.0.4\bin\i386-win32 | |
| ) | |
| :: Delphi 7 | |
| if "%1"=="d7" ( | |
| echo Configurando ambiente para Delphi 7 | |
| PATH %PATH%;C:\Program Files\Borland\Delphi7\Bin;C:\Program Files\Borland\Delphi7\Projects\Bpl\;C:\bin\pasdoc\bin | |
| ) | |
| :: Delphi 10 | |
| if "%1"=="d10" ( | |
| PATH %PATH%;C:\Program Files\Embarcadero\Studio\20.0\bin | |
| ) | |
| :: Rust | |
| if "%1"=="rust" ( | |
| PATH %PATH%;C:\Program Files\Rust stable MSVC 1.49\bin | |
| ) | |
| :: Development | |
| PATH %PATH%;C:\bin | |
| PATH %PATH%;C:\Python37\ | |
| PATH %PATH%;C:\Python37\Scripts | |
| PATH %PATH%;C:\Program Files\TortoiseGit\bin | |
| PATH %PATH%;C:\Program Files\Git\cmd | |
| PATH %PATH%;C:\Program Files\Git\mingw32\bin | |
| PATH %PATH%;C:\Program Files\Git\usr\bin | |
| :: Custom | |
| PATH %PATH%;C:\Program Files\7-Zip | |
| PATH %PATH%;C:\Program Files\Firebird\Firebird_2_5\bin | |
| PATH %PATH%;C:\Program Files\Ello Database Utils\bin | |
| PATH %PATH%;C:\ProgramData\Oracle\Java\javapath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment