Skip to content

Commit

Permalink
feat: Support using external shim.exe
Browse files Browse the repository at this point in the history
Signed-off-by: Chawye Hsu <[email protected]>
  • Loading branch information
chawyehsu committed Oct 29, 2024
1 parent 84e00fd commit 9de0976
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,8 @@ function shim($path, $global, $name, $arg) {

function get_shim_path() {
$shim_version = get_config SHIM 'kiennq'
$shim_path = switch ($shim_version) {
$shim_path = switch -Wildcard ($shim_version) {
'ext:*' { "$(versiondir "$($shim_version -replace 'ext:','')" 'current')\shim.exe" }
'scoopcs' { "$(versiondir 'scoop' 'current')\supporting\shims\scoopcs\shim.exe" }
'71' { "$(versiondir 'scoop' 'current')\supporting\shims\71\shim.exe" }
'kiennq' { "$(versiondir 'scoop' 'current')\supporting\shims\kiennq\shim.exe" }
Expand Down

0 comments on commit 9de0976

Please sign in to comment.