mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
6b37074dd5
Now the msysgit is being loaded first, so find will invoke the correct and better version
42 lines
1.0 KiB
Batchfile
42 lines
1.0 KiB
Batchfile
:: Init Script for cmd.exe
|
|
:: Sets some nice defaults
|
|
:: Created as part of cmder project
|
|
|
|
:: Change the prompt style
|
|
:: Mmm tasty lamb
|
|
@prompt $E[1;32;40m$P$S{git}$S$_$E[1;30;40m{lamb}$S$E[0m
|
|
|
|
:: Pick right version of clink
|
|
@if "%PROCESSOR_ARCHITECTURE%"=="x86" (
|
|
set architecture=86
|
|
) else (
|
|
set architecture=64
|
|
)
|
|
|
|
:: Run clink
|
|
@"%CMDER_ROOT%\vendor\clink\clink_x%architecture%.exe" inject --quiet --profile "%CMDER_ROOT%\config"
|
|
|
|
:: Prepare for msysgit
|
|
|
|
:: I do not even know, copypasted from their .bat
|
|
@set PLINK_PROTOCOL=ssh
|
|
@if not defined TERM set TERM=cygwin
|
|
|
|
:: Enhance Path
|
|
@set git_install_root=%CMDER_ROOT%\vendor\msysgit
|
|
@set PATH=%CMDER_ROOT%\bin;%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;%git_install_root%\share\vim\vim73;%PATH%
|
|
|
|
:: Add aliases
|
|
@doskey /macrofile="%CMDER_ROOT%\config\aliases"
|
|
|
|
:: Set home path
|
|
@if not defined HOME set HOME=%USERPROFILE%
|
|
|
|
@if defined CMDER_START (
|
|
@cd /d "%CMDER_START%"
|
|
) else (
|
|
@if "%CD%\" == "%CMDER_ROOT%" (
|
|
@cd /d "%HOME%"
|
|
)
|
|
)
|