fixed git not working in cmder cmd session and added some comments

This commit is contained in:
Dax T. Games 2016-05-07 10:56:08 -05:00
parent 4e9882eea4
commit 537c658eb4

9
vendor/init.bat vendored
View File

@ -71,7 +71,7 @@ for /F "delims=" %%F in ('where git.exe') do @(
if exist "%CMDER_ROOT%\vendor\git-for-windows" ( if exist "%CMDER_ROOT%\vendor\git-for-windows" (
set "GIT_INSTALL_ROOT=%CMDER_ROOT%\vendor\git-for-windows" set "GIT_INSTALL_ROOT=%CMDER_ROOT%\vendor\git-for-windows"
rem add the minimal git commands to the front of the path rem add the minimal git commands to the front of the path
set "PATH=%GIT_INSTALL_ROOT%\cmd;%PATH%" set "PATH=!GIT_INSTALL_ROOT!\cmd;%PATH%"
) else ( ) else (
goto :NO_GIT goto :NO_GIT
) )
@ -106,8 +106,11 @@ for /f "usebackq" %%x in ( `dir /b *.bat *.cmd 2^>nul` ) do (
popd popd
:: Allows user to override default aliases store using profile.d :: Allows user to override default aliases store using profile.d
:: scripts run above. Note: If overriding default aliases file :: scripts run above by setting the 'alaises' env variable.
:: in profile.d the aliases must also be loaded in profile.d. ::
:: Note: If overriding default aliases store file the aliases
:: must also be self executing, see '.\user-aliases.cmd.example',
:: and be in profile.d folder.
set "user-aliases=%CMDER_ROOT%\config\user-aliases.cmd" set "user-aliases=%CMDER_ROOT%\config\user-aliases.cmd"
if not defined aliases ( if not defined aliases (
set "aliases=%user-aliases%" set "aliases=%user-aliases%"