Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system PATH overriding path set in init.bat #219

Closed
isimmons opened this issue Jul 4, 2014 · 1 comment
Closed

system PATH overriding path set in init.bat #219

isimmons opened this issue Jul 4, 2014 · 1 comment

Comments

@isimmons
Copy link

isimmons commented Jul 4, 2014

I'm trying to make sure the 'find' command is using the unix one from msysgit. I think the problem is the system path variable is overriding whatever I set in init.bat.

Or I may be doing this wrong.

relevant section in init.bat

:: Enhance Path

@set git_cmd=%rootDir%\vendor\msysgit\cmd
@set git_bin=%rootDir%\vendor\msysgit\bin
@set git_vim=%rootDir%\vendor\share\vim\vim73
:: Add Gnuwin32 for some missing commands
@set gnuwin32_bin=%rootDir%\vendor\GnuWin32\bin
@set zip_bin=%rootDir%\vendor\7zip\App\7-Zip
@set PATH=%rootDir%\bin;%git_cmd%;%git_bin%;%zip_bin%;%gnuwin32_bin%;%PATH%

My thinking is that placing paths in this order will control which executable is used by letting the system use the first one it finds. When I echo %path% it is definitely placing these paths before the default system paths but it still doesn't recognize the find.exe from msysgit and uses the one in system32 instead.

@isimmons
Copy link
Author

isimmons commented Jul 5, 2014

Got it worked out. First I upgraded to the latest version because I noticed some differences in the init.bat file but I don't think that was the problem.

I noticed echoing path that 7zip and gnuwin32 were getting the numbers cut off but I think that's because numbers in variable names don't work. They're fine in the path a variable points to, just not in the variable name it's self.

Here is my new setup which is working fine. I did have to move %PATH% to the end though so windows 'find' would not be used.

:: Enhance Path
@set zip_bin=%CMDER_ROOT%\vendor\7zip\App\7-Zip64
@set gnuwin_bin=%CMDER_ROOT%\vendor\GnuWin32\bin
@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;%zip_bin%;%gnuwin_bin%;%PATH%;

@isimmons isimmons closed this as completed Jul 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant