mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
docs: add Homebrew information for Nerd Fonts
This commit is contained in:
parent
8362bad8bc
commit
deaf1701b5
|
@ -4,6 +4,9 @@ title: Fonts
|
|||
sidebar_label: 🔤 Fonts
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
### Nerd Fonts
|
||||
|
||||
Oh My Posh was designed to use [Nerd Fonts][nerdfonts]. Nerd Fonts are popular fonts that are patched to include icons.
|
||||
|
@ -13,6 +16,15 @@ To see the icons displayed in Oh My Posh, **install** a [Nerd Font][nerdfonts],
|
|||
|
||||
#### Installation
|
||||
|
||||
<Tabs
|
||||
defaultValue="oh-my-posh"
|
||||
values={[
|
||||
{ label: 'Oh My Posh', value: 'oh-my-posh' },
|
||||
{ label: 'homebrew', value: 'homebrew' }
|
||||
]
|
||||
}>
|
||||
<TabItem value="oh-my-posh">
|
||||
|
||||
Oh My Posh has a CLI to help you select and install a [Nerd Font][nerdfonts] (beta):
|
||||
|
||||
:::caution Windows
|
||||
|
@ -23,6 +35,22 @@ This command needs to be executed as admin. The fonts are installed system wide.
|
|||
oh-my-posh font install
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="homebrew">
|
||||
|
||||
If you're using Homebrew, you can tap the `homebrew-cask-fonts` repository and install Nerd Fonts from there instead:
|
||||
|
||||
```bash
|
||||
brew tap homebrew/cask-fonts # You only need to do this once!
|
||||
brew search nerd-font # Search for font packages
|
||||
|
||||
# EXAMPLE: Install the NF version of Fira Code
|
||||
brew install --cask font-fira-code-nerd-font
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
#### Windows Terminal
|
||||
|
||||
Once you have installed a Nerd Font, you will need to configure the Windows Terminal to use it. This can be easily done
|
||||
|
@ -44,7 +72,6 @@ by modifying the Windows Terminal settings (default shortcut: `CTRL + SHIFT + ,`
|
|||
}
|
||||
```
|
||||
|
||||
|
||||
#### VS Code
|
||||
|
||||
When using Visual Studio Code, you will need to configure the integrated Terminal to make use of the Nerd Font as well. This can be done by changing the `Integrated: Font Family` value in the Terminal settings (default shortcut: `CTRL + ,` and search for `Integrated: Font Family` or via `Users` -> `Features` -> `Terminal`).
|
||||
|
|
Loading…
Reference in a new issue