We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 744287b commit b6faa3bCopy full SHA for b6faa3b
PSFzf.Git.ps1
@@ -62,7 +62,7 @@ function SetupGitPaths() {
62
$script:scoopInfo = Get-Command scoop -ErrorAction Ignore
63
if ($null -ne $script:scoopInfo) {
64
# Detect if git is installed using scoop (using shims)
65
- if ((Split-Path $gitInfo.Source -Parent) -eq (Split-Path $script:scoopInfo.Source -Parent)) {
+ if ($gitInfo.Source -match 'scoop[\\/]shims') {
66
# Get the proper git position relative to scoop shims" position
67
$gitInfo = Get-Command "$($gitInfo.Source)\..\..\apps\git\current\bin\git.exe"
68
}
0 commit comments