Guest User

Guía de instalación y configuración de Windows Terminal

a guest
Feb 23rd, 2023
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Guia de instalación y configuración de Windows Terminal:
  2.  
  3. 1.  Instalamos desde Microsoft Store:
  4.  
  5.     - Terminal
  6.     - PowerShell
  7.  
  8. 2.  Establecemos PowerShell como predeterminado en Windows Terminal:
  9.  
  10.     1. Ctrl+,
  11.     2. Inicio\Perfil Predeterminado -> PowerShell
  12.  
  13. 3.  Instalamos la fuente para la PowerShell:
  14.  
  15.     1. Accedemos a la página web de NerdFonts (www.nerdfonts.com/font-downloads), escogemos una fuente y la descargamos
  16.     2. Descomprimimos el archivo descargado e instalamos la fuente
  17.  
  18. 4. Configuramos el tipo de fuente de Windows Terminal:
  19.  
  20.     1. Ctrl+,
  21.     2. PowerShell>Apariencia\Tipo de fuente -> Fuente instalada
  22.  
  23. 5. Instalamos OhMyPosh escribiendo en la terminal el siguiente comando:
  24.  
  25.     winget install JanDeDobbeleer.OhMyPosh -s winget
  26.  
  27. 6. Escogemos un tema para el prompt:
  28.  
  29.     1. Accedemos a la página web de OhMyPosh (ohmyposh.dev/docs/themes) y escogemos el tema que más nos guste
  30.  
  31. 7. Creamos el archivo de configuracion de PowerShell escribiendo el siguiente comando en la terminal:
  32.  
  33.     New-Item -Path $PROFILE -Type File -Force
  34.     notepad $PROFILE
  35.    
  36. 8. Ponemos la configuración de PowerShell en el bloc de notas abierto:
  37.     *Cambiamos la cadena de texto "NombreTema" por el nombre del tema escogido*
  38.  
  39.     oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\NombreTema.omp.json" | Invoke-Expression
  40.     Import-Module -Name Terminal-Icons
  41.  
  42. 9. Instalamos el módulo de visión de archivos escribiendo en la terminal el siguiente comando:
  43.  
  44.     Install-Module -Name Terminal-Icons -Repository PSGallery
  45.  
  46.  10. Recargamos la configuracion escribiendo en la terminal el siguiente comando:
  47.  
  48.     . $PROFILE
  49.  
  50.  
  51. # Créditos:
  52.  
  53.     NerdFonts (Web de las fuentes) -> www.nerdfonts.com
  54.     OhMyPosh (Proyecto del prompt) -> ohmyposh.dev
  55.     Terminal-Icons (Proyecto del módulo de iconos de archivos y carpetas) -> github.com/devblackops/Terminal-Icons
  56.  
  57. --------------------------------------------------------------------------------------------------------
  58.  
  59. # Windows Terminal installation and configuration guide:
  60.  
  61. 1. Install from Microsoft Store:
  62.  
  63.     - Terminal
  64.     - PowerShell
  65.  
  66. 2.  Set PowerShell as default in Windows Terminal:
  67.  
  68.     1. Ctrl+,
  69.     2. Startup\Default Profile -> PowerShell
  70.  
  71. 3.  Install the font for the PowerShell:
  72.  
  73.     1. Go to the NerdFonts website (www.nerdfonts.com/font-downloads), choose a font and download it.
  74.     2. Unzip the downloaded file and install the font.
  75.  
  76. 4. Set the Windows Terminal font type:
  77.  
  78.     1. Ctrl+,
  79.     2. PowerShell>Appearance\Font face -> Installed Font
  80.  
  81. 5. Install OhMyPosh by typing the following command in the terminal:
  82.  
  83.     winget install JanDeDobbeleer.OhMyPosh -s winget
  84.  
  85. 6. Choose a theme for the prompt:
  86.  
  87.     1. Go to the OhMyPosh website (ohmyposh.dev/docs/themes) and choose the theme you like the most.
  88.  
  89. 7. Create the PowerShell configuration file by typing the following command in the terminal:
  90.  
  91.     New-Item -Path $PROFILE -Type File -Force
  92.     notepad $PROFILE
  93.    
  94. 8. Put the PowerShell configuration in the open notepad:
  95.     *Change the string "ThemeName" to the name of the chosen theme.
  96.  
  97.     oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\ThemeName.omp.json" | Invoke-Expression
  98.     Import-Module -Name Terminal-Icons
  99.  
  100. 9. Install the file viewer module by typing the following command in the terminal:
  101.  
  102.     Install-Module -Name Terminal-Icons -Repository PSGallery
  103.  
  104. 10. Reload the configuration by typing the following command in the terminal:
  105.  
  106.     . $PROFILE
  107.  
  108.  
  109. # Credits:
  110.  
  111.     NerdFonts (Fonts website) -> www.nerdfonts.com
  112.     OhMyPosh (Project of the prompt) -> ohmyposh.dev
  113.     Terminal-Icons (File and folder icons module project) -> github.com/devblackops/Terminal-Icons
Advertisement
Add Comment
Please, Sign In to add comment