cmder icon indicating copy to clipboard operation
cmder copied to clipboard

how i can change the mysysgit folder

Open rockdrigo opened this issue 11 years ago • 2 comments

i have msysgit in the folder C:\DEV\Git how i can use the aliases in cmd without install the full version of cmder?

rockdrigo avatar Sep 02 '15 17:09 rockdrigo

You could change the vendor\init.bat file to look at your git path:

:: Check if msysgit is installed
@if exist "%ProgramFiles%\Git" (
    set "GIT_INSTALL_ROOT=%ProgramFiles%\Git"
) else if exist "%ProgramFiles(x86)%\Git" (
    set "GIT_INSTALL_ROOT=%ProgramFiles(x86)%\Git"
) else if exist "%CMDER_ROOT%\vendor" (
    set "GIT_INSTALL_ROOT=%CMDER_ROOT%\vendor\msysgit"
)

-> replace @if exist "%ProgramFiles%\Git with @if exist "c:\DEV\Git

jankatins avatar Sep 04 '15 18:09 jankatins

The proper sulution would probably be to to change the default init.bat to run where git.exe and look at the results -> as long as git is in path this will work...

jankatins avatar Sep 04 '15 18:09 jankatins