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
scoop install creates an oh-my-posh-wsl.ps1 which is not useful in WSL #449
Comments
Wait, you're telling me it installs the unix binary as |
nah it creates a .ps1 file with the following content: if (!(Test-Path Variable:PSScriptRoot)) { $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
$path = join-path "$psscriptroot" "..\apps\oh-my-posh\current\oh-my-posh-wsl"
if($myinvocation.expectingInput) { $input | & $path @args } else { & $path @args }
|
@jetersen seems to work now (at least adding to PATH) |
🚀 Thanks for the quick fix once again! |
Hm, I had oh-my-posh3 installed via scoop from the default main bucket and it had been working fine until this change. Now it fails to update. I guess that is an issue for that repo, however. I filed ScoopInstaller/Main#1866 since I assume other folks like myself might find oh-my-posh via that default bucket. |
This update breaks my installation, since the |
I know, but it doesn't on my machine 😜 Reinstalling does not work either. I'll add it manually and see what happens with the next update. If that still breaks, I'll create a new issue and dive in a bit deeper. |
@Lucky-Loek it did add it to my PATH when testing. Had to reboot though for it to show up. |
Oooh ofc, that makes sense. It's still Windows so PATH changes need a reboot.. Thanks for the quick reply! (and the awesome tool!) |
FWIW installing via the scoop main bucket worked find for me once the issue I mentioned above was resolved. That bucket's manifest still creates shims and did not require rebooting. |
shims are undesirable for the |
Prerequisites
CONTRIBUTING
guideDescription
seems scoop does not provide a proper shim I suspect it wants
.exe
in thebin
section to create application shim rather than a ps1 shim. I slightly remember something about being able to configuring bin for scoop.Environment
Steps to Reproduce
The text was updated successfully, but these errors were encountered: