mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
remove -all
This commit is contained in:
parent
6ae2f97f52
commit
004535e0bc
12
CHANGELOG.md
12
CHANGELOG.md
@ -11,6 +11,18 @@
|
||||
|
||||
### Adds
|
||||
|
||||
- Powershell Git version Discovery - See #2373 for the full proposal.
|
||||
- Find user installed Git on Path
|
||||
- If found
|
||||
- if newer than Cmder embedded Git
|
||||
- Use it's existing Path config and completely ignore embedded Git.
|
||||
- Else if Cmder embedded Git exists and is newer
|
||||
- Match User installed Git path config using Cmder embedded Git folders.
|
||||
- Else if Cmder embedded Git exists
|
||||
- Add Cmder embedded Git folders to the path.
|
||||
- `$env:cmder_root\vendor\git-for-windows\cmd;$env:path`
|
||||
- `$env:path;$env:cmder_root\vendor\git-for-windows\usr\bin`
|
||||
- `$env:path;$env:cmder_root\vendor\git-for-windows\mingw64\bin`
|
||||
- Configurable prompt for `cmd.exe` sessions. See `%cmder_root%\config\cmder_prompt_config.lua`
|
||||
- Configurable colors
|
||||
- Option to change `λ` to another character.
|
||||
|
2
vendor/profile.ps1
vendored
2
vendor/profile.ps1
vendored
@ -44,7 +44,7 @@ $gitVersionVendor = (readVersion -gitPath "$ENV:CMDER_ROOT\vendor\git-for-window
|
||||
# write-host "GIT VENDOR: ${gitVersionVendor}"
|
||||
|
||||
# Get user installed Git Version[s] and Compare with vendored if found.
|
||||
foreach ($git in (get-command -ErrorAction SilentlyContinue -all 'git')) {
|
||||
foreach ($git in (get-command -ErrorAction SilentlyContinue 'git')) {
|
||||
# write-host "GIT Path: " + $git.Path
|
||||
$gitDir = Split-Path -Path $git.Path
|
||||
$gitDir = isGitShim -gitPath $gitDir
|
||||
|
Loading…
Reference in New Issue
Block a user