Issue with Upgrade-OhMyPosh
leonardminot opened this issue · 1 comments
Hi,
first of all, thank you for your work.
I have an issue with the script 👍
PS C:\Users\leona> iex "& { $(irm 'https://raw.githubusercontent.com/springcomp/my-box/main/bootstrap/powershell.ps1') }" COMMENTAIRES : Destination: C:\Users\leona\AppData\Local\Microsoft\powershell-daily COMMENTAIRES : Latest PowerShell Daily already installed. GET https://raw.githubusercontent.com/springcomp/powershell_profile.ps1/master/Microsoft.PowerShell_profile.ps1 HTTP/1.1 C:\Users\leona\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 updated. Loading oh-my-posh profile. Loading psreadline profile. Installing C:\Users\leona\AppData\Local\Temp\CascadiaCode\Caskaydia Cove Nerd Font Complete Mono Windows Compatible.ttf... Installing C:\Users\leona\AppData\Local\Temp\CascadiaCode\Caskaydia Cove Nerd Font Complete Mono.ttf... Installing C:\Users\leona\AppData\Local\Temp\CascadiaCode\Caskaydia Cove Nerd Font Complete Windows Compatible.ttf... Installing C:\Users\leona\AppData\Local\Temp\CascadiaCode\Caskaydia Cove Nerd Font Complete.ttf... Un package existant a déjà été installé. Tentative de mise à niveau du package installé... Aucune mise à niveau applicable trouvée. NativeCommandExitException: Program "winget.exe" ended with non-zero exit code: -1978335189. Profile oh-my-posh already registered to the profiles profile. Profile psreadline already registered to the profiles profile. Upgrade-OhMyPosh: C:\Users\leona\AppData\Local\Temp\pwsh-core.ps1:106 Line | 106 | Upgrade-OhMyPosh | ~~~~~~~~~~~~~~~~ | The term 'Upgrade-OhMyPosh' is not recognized as a name of a cmdlet, function, script file, or executable program. | Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I don't know what to do...
Thanks in advance for your help !
Léo
Sorry, my mistake. It works well, the issue was due to the wrong version of powershell I used (i now use version 7 instead of version 5 and it is perfect !)