Usar Powershell como Administrador o con las directiva de ejecución de PowerShell para ejecutar scripts
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
winget install JanDeDobbeleer.OhMyPosh
winget install -e --id Git.Git
Install-Module -Name posh-git -Scope CurrentUser -Force
Invoke-WebRequest -UseBasicParsing -Uri https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.1/FiraCode.zip -OutFile FiraCode.zip
Expand-Archive .\FiraCode.zip
oh-my-posh init pwsh | Invoke-Expression
Import-Module posh-git
Get-PoshThemes
Set-PoshPrompt -Theme microverse-power # (deprecated)
if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
notepad $PROFILE
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\microverse-power.omp.json" | Invoke-Expression
Import-Module posh-git
sudo apt-get install git
sudo apt install unzip
# Oh My Posh
eval "$(oh-my-posh init bash --config ~/.poshthemes/microverse-power.omp.json)"
mkdir -p ~/.local/share/fonts
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.1/Meslo.zip -O ~/.local/share/fonts/Meslo.zip
unzip ~/.local/share/fonts/Meslo.zip -d ~/.local/share/fonts/NerdFonts
rm ~/.local/share/fonts/Meslo.zip
source ~/.bashrc
winget install -e --id Microsoft.PowerShell
winget install -e --id JanDeDobbeleer.OhMyPosh
Install-Module -Name Terminal-Icons -Repository PSGallery
Import-Module -Name Terminal-Icons
Start-Process "ms-appinstaller:?source=https://aka.ms/getwinget"
$nid = (Get-Process AppInstaller).Id
Wait-Process -Id $nid
Write-Host Winget Installed