-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Inconsistent path
between shell types causing inconsistent Git version and tools if Git is installed locally and a different version than embeded Git
#2373
Comments
@DRSDavidSoft I am trying to duplicate the |
So I guess no one cares. Oh well the lack of feature parity between shells bugs me and I just like to code so I have already written the Powershell modifications to do this. I will open a PR so people can test it when I am completely finished. |
@daxgames Sorry for the late response, I was busy. I took a look at I will look more into it so I can understand the purpose behind it. I feel like the same regarding shell inconsistencies, and in any case, I'd like to appreciate what you're doing to address them. Please, don't let this discourage you from improving upon the codebase. I will respond when I find anything on git "shim". |
@daxgames Found some relevant info: #1905
@daxgames It seems that Shim is actually a Scoop component -- so this routine is probably used in order to find the correct installation path for Git, when installed via Scoop. Since scoop is a package installer written in Powershell, I believe it will be beneficial to also provide the Git Shim path discovery function to the Cmder's Powershell profile. |
@DRSDavidSoft my bad. I thought you wrote this. Thanks for doing the research and making up for my lack of effort. |
@daxgames No problems, I'm looking forward to see your modifications, hopefully also containing the shim detection! |
Purpose of the issue
Version Information
Cmder Version: 1.3.16
Windows Version: 10 2004 Build 19041.388
Locally installed Git: 2.27.0.windows.1
Embedded Git Version: 2.28.0.windows.1
Description of the issue
Inconsistent
path
between shell types causing inconsistent Git version and tools if Git is installed locally and a different version than embeded GitC:\Program Files\Git
.cmd::Cmder
andpowershell::powershell
shells result in inconsistentpath
between shell types causing inconsistent Unix tools availability.See screenshot of path from
cmd::cmder
,powershell::powershell
,bash::bash
split by delimiter into separate lines:Result of inconsistencies in each shell:
cmd::cmder
powershell::powershell
bash::bash
Git Version: 2.27.0.windows.1Proposed Fix:
cmd::cmder
but notpowershell::powershell
%cmder_root%\vendor\git-for-windows\cmd
to the front of the pathand add
%cmder_root%\vendor\git-for-windows\mingw64\bin
and%cmder_root%\vendor\git-for-windows\usr\bin
afterC:\Windows
to the end of the pathusing embedded Git version and preferring Windows tools.
cmd::cmder
but notpowershell::powershell
C:\Program Files\Git\cmd
to the paththen
cmd::cmder
andpowershell::powershell
should do the same byadding
%cmder_root%\vendor\git-for-windows\cmd
to the front of the pathoverriding locally installed Git using embedded version.
C:\Program Files\Git\cmd
to the path and alsoC:\Program Files\mingw64\bin
andC:\Program Files\usr\bin
afterC:\Windows
then
cmd::cmder
andpowershell::powershell
should do the same byadding
%cmder_root%\vendor\git-for-windows\cmd
to the front of the pathand adding
C:\Program Files\mingw64\bin
andC:\Program Files\usr\bin
afterC:\Windows
to the end of the pathoverriding locally installed Git using embedded version and preferring Windows tools.
C:\Program Files\Git\cmd
to the path andC:\Program Files\mingw64\bin
andC:\Program Files\usr\bin
beforeC:\Windows\System32
then
cmd::cmder
andpowershell::powershell
should do the same byadding
%cmder_root%\vendor\git-for-windows\cmd
andC:\Program Files\mingw64\bin
andC:\Program Files\usr\bin
to the front of the pathoverriding locally installed version and preferring Unix tools.
Comments?
The text was updated successfully, but these errors were encountered: