-
Notifications
You must be signed in to change notification settings - Fork 37
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
Invoke-FuzzyGitStatus fails to find the bash.exe path when git is installed globally via scoop #272
Comments
@CeyFun , do you know what would be the fix here as you've made scoop related changes before? |
I don't know what would be the issue. I'll try to reproduce it on my machine when I have some time. |
I think that the issue is here: # Detect if git is installed using scoop (using shims)
if ((Split-Path $gitInfo.Source -Parent) -eq (Split-Path $script:scoopInfo.Source -Parent)) {
# Get the proper git position relative to scoop shims" position
$gitInfo = Get-Command "$($gitInfo.Source)\..\..\apps\git\current\bin\git.exe"
} When git is installed globally with scoop, then the If I'm not mistaken, I think that it is enough just to check if # Detect if git is installed using scoop (using shims)
if ($gitInfo.Source -match 'scoop[\\/]shims') {
# Get the proper git position relative to scoop shims" position
$gitInfo = Get-Command "$($gitInfo.Source)\..\..\apps\git\current\bin\git.exe"
} This fixes the issue when git is installed globally, |
This fixes the issue kelleyma49#272
* Fix `Invoke-PsFzfRipgrep` throws `unknown action: change-prompt` after updating to 2.6.1 #273 - Add 'Disabled' param - Restore unicode icons for git functions and only show in Terminal or non-Windows - Minor formatting fix * Fix debug output * Use fzf directly instead of PowerShell function * Properly detect if git is installed using scoop regardless of scope (#278) This fixes the issue #272 --------- Co-authored-by: Kris Borowinski <[email protected]>
Invoke-FuzzyGItStatus
fails to find thebash.exe
path when git is installed globally via scoop:Global scoop git app folder structure:
The text was updated successfully, but these errors were encountered: