Saltar al contenido principal

Fuentes

Traducción Beta No Oficial

Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →

Nerd Fonts

Oh My Posh fue diseñado para usar Nerd Fonts. Las Nerd Fonts son fuentes populares modificadas para incluir iconos. Para ver los iconos que muestra Oh My Posh, instala una Nerd Font y configura tu terminal para usarla.

información

Las fuentes deben instalarse en el sistema host porque es una configuración de interfaz de usuario, no de línea de comandos ni de shell. Esto significa que al ejecutar dentro de un contenedor o WSL, debes instalar la fuente en el sistema host y configurar tu emulador de terminal para usarla.

Instalación

Oh My Posh has a CLI to help you select and install a Nerd Font:

información

When running as root/administrator, the fonts will be installed system-wide. When running as a regular user, the fonts will be installed in the user's font directory. By default, Oh My Posh installs the .ttf version of the font in case multiple versions are available.

oh-my-posh font install

This will present a list of Nerd Font libraries, from which you can select Meslo, which includes the Meslo LGM NF font we recommend. Note that you can also install it directly via:

oh-my-posh font install meslo

Configuración

Asegúrate de configurar tu terminal para usar la fuente que instalaste. Las siguientes secciones te mostrarán cómo hacerlo en las terminales más populares.

Once you have installed a Nerd Font, you will need to configure the Windows Terminal to use it. This can be easily done by modifying the Windows Terminal settings (default shortcut: CTRL + SHIFT + ,). In your settings.json file, add the font.face attribute under the defaults attribute in profiles:

{
"profiles":
{
"defaults":
{
"font":
{
"face": "MesloLGM Nerd Font"
}
}
}
}

Otras fuentes

Si no te interesa usar una Nerd Font, querrás usar un tema que no incluya iconos de Nerd Font. Los temas minimal no utilizan iconos de Nerd Font.

Crear tu propio tema también es siempre una opción 😊