jueves, 21 de marzo de 2024

Instalar Powershell 7


Instalar Powershell Version 7
--------------------------------------
$> winget search powershell
$> winget install Microsoft.Powershell

Actualizar Powershell 7
$> iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"

Crear archivo con el nombre Microsoft.PowerShell_profile.ps1 en Documentos/Powershell
--------------------------------------------------
function prompt {
       $arrowColor = "38;2;30;197;147m"
       Write-Host -NoNewline -ForegroundColor White "`e[$arrowColor➔  "
       Write-Host -NoNewline -ForegroundColor Cyan "$($PWD.ProviderPath | Split-Path -Leaf)"
       return " "
}
--------------------------------------------------

Desactivar texto de inicio PowerShell
Ir Configuracion -> Setting.json
"commandline": "pwsh.exe -nologo",
"opacity": 97,
"intenseTextStyle": "all",
"centerOnLaunch":true,

Tamaño de Terminal: colum 98   Filas:25
Font: CaskaydiaCove Nerd Font
FontSize:12

Desactivar texto de inicio PowerShell
$> Install-Module -Name Terminal-Icons -Repository PSGallery      //Y
$> winget install Microsoft.Powershell
$> notepad $PROFILE
Al final de la línea agregar:
Import-Module -Name Terminal-Icons

➜➔


No hay comentarios:

Publicar un comentario

Instalar Powershell 7

Instalar Powershell Version 7 -------------------------------------- $> winget search powershell $> winget install Microsoft.Powershe...