25 | | 2. Modify `c:\osgeo4w\apps\msys\msys.bat`, see attachment:msys.bat.diff |
| 25 | 2. Modify `c:\osgeo4w\apps\msys\msys.bat` |
| 26 | |
| 27 | {{{ |
| 28 | --- msys.bat 2009-07-11 18:34:35 +0000 |
| 29 | +++ apps/msys/msys.bat 2012-02-09 18:03:45 +0000 |
| 30 | @@ -12,6 +12,8 @@ |
| 31 | rem A value similar to C:\msys\1.0\bin is what the "Start in:" field needs |
| 32 | rem to represent. |
| 33 | |
| 34 | +call "%~dp0\..\..\bin\o4w_env.bat" |
| 35 | + |
| 36 | rem ember value of GOTO: is used to know recursion has happened. |
| 37 | if "%1" == "GOTO:" goto %2 |
| 38 | |
| 39 | @@ -53,9 +55,9 @@ |
| 40 | if "x%1" == "x--rxvt" set MSYSCON=rxvt.exe |
| 41 | if NOT "x%MSYSCON%" == "xunknown" shift |
| 42 | |
| 43 | -if "x%MSYSCON%" == "xunknown" set MSYSCON=sh.exe |
| 44 | +if "x%MSYSCON%" == "xunknown" set MSYSCON=rxvt.exe |
| 45 | |
| 46 | -if "x%MSYSTEM%" == "x" set MSYSTEM=MINGW32 |
| 47 | +if "x%MSYSTEM%" == "x" set MSYSTEM=MSYS |
| 48 | if "%1" == "MINGW32" set MSYSTEM=MINGW32 |
| 49 | if "%1" == "MSYS" set MSYSTEM=MSYS |
| 50 | |
| 51 | @@ -80,8 +82,8 @@ |
| 52 | if NOT EXIST %WD%rxvt.exe goto startsh |
| 53 | |
| 54 | rem Setup the default colors for rxvt. |
| 55 | -if "x%MSYSBGCOLOR%" == "x" set MSYSBGCOLOR=White |
| 56 | -if "x%MSYSFGCOLOR%" == "x" set MSYSFGCOLOR=Black |
| 57 | +if "x%MSYSBGCOLOR%" == "x" set MSYSBGCOLOR=Black |
| 58 | +if "x%MSYSFGCOLOR%" == "x" set MSYSFGCOLOR=White |
| 59 | if "x%MINGW32BGCOLOR%" == "x" set MINGW32BGCOLOR=LightYellow |
| 60 | if "x%MINGW32FGCOLOR%" == "x" set MINGW32FGCOLOR=Navy |
| 61 | if "%MSYSTEM%" == "MSYS" set BGCOLOR=%MSYSBGCOLOR% |
| 62 | @@ -89,7 +91,7 @@ |
| 63 | if "%MSYSTEM%" == "MINGW32" set BGCOLOR=%MINGW32BGCOLOR% |
| 64 | if "%MSYSTEM%" == "MINGW32" set FGCOLOR=%MINGW32FGCOLOR% |
| 65 | |
| 66 | -start %WD%rxvt -backspacekey -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr -fn Courier-12 -tn msys -geometry 80x25 -e /bin/sh --login -i |
| 67 | +start %WD%rxvt -backspacekey -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr -fn Courier-16 -tn msys -geometry 80x25 -e /bin/sh --login -i |
| 68 | exit |
| 69 | |
| 70 | :startsh |
| 71 | }}} |