We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d21aee9 commit 91c04cbCopy full SHA for 91c04cb
powershell/command_palette_installer.ps1
@@ -23,6 +23,11 @@ if (Test-Path env:MPV_CONFIG_DIR) {
23
} elseif (Test-Path "$env:APPDATA/mpv") {
24
Write-Output "Installing into (current mpv user config):"
25
$ConfigDir = "$env:APPDATA/mpv"
26
+} elseif ((Get-Command scoop -ea SilentlyContinue) -and (Test-Path (scoop which mpv))) {
27
+ Write-Output "Installing into scoop installation location"
28
+ $path = Join-Path (Split-Path (scoop which mpv)) "portable_config"
29
+ New-Item -ItemType Directory -Path $path -ea SilentlyContinue | Out-Null
30
+ $ConfigDir = Resolve-Path $path
31
} else {
32
Write-Output "Installing into current directory:"
33
$ConfigDir = "$PWD"
0 commit comments