Direct naar hoofdinhoud

Lettertypen

Onofficiële Beta-vertaling

Deze pagina is vertaald door PageTurner AI (beta). Niet officieel goedgekeurd door het project. Een fout gevonden? Probleem melden →

Nerd Fonts

Oh My Posh is ontworpen om Nerd Fonts te gebruiken. Nerd Fonts zijn populaire lettertypen die zijn aangepast om pictogrammen te bevatten. Om de pictogrammen in Oh My Posh te zien, installeer je een Nerd Font en configureer je je terminal om dit lettertype te gebruiken.

informatie

Lettertypen moeten op het hostsysteem worden geïnstalleerd, omdat dit een UI-instelling is, geen opdrachtregel- of shellconfiguratie. Dit betekent dat bij gebruik in een container of WSL je het lettertype op het hostsysteem moet installeren en je terminalemulator moet configureren om het te gebruiken.

Installatie

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

informatie

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

Configuratie

Zorg ervoor dat je je terminal configureert om het geïnstalleerde lettertype te gebruiken. De volgende secties laten zien hoe je dit doet voor de populairste terminals.

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"
}
}
}
}

Andere lettertypen

Als je geen Nerd Font wilt gebruiken, kun je het beste een thema kiezen zonder Nerd Font-pictogrammen. De minimal-thema's maken geen gebruik van Nerd Font-pictogrammen.

Je eigen thema maken is ook altijd een optie 😊