mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 12:20:07 +00:00
change formatting in the font installation instructions to make it more obvious where each step begins and ends
This commit is contained in:
parent
0745592886
commit
543e2d59cf
2 changed files with 184 additions and 175 deletions
13
README.md
13
README.md
|
@ -520,8 +520,7 @@ If you are using a different terminal, proceed with manual font installation.
|
||||||
|
|
||||||
#### Manual font installation
|
#### Manual font installation
|
||||||
|
|
||||||
Download these four ttf files:
|
1. Download these four ttf files:
|
||||||
|
|
||||||
- [MesloLGS NF Regular.ttf](
|
- [MesloLGS NF Regular.ttf](
|
||||||
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf)
|
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf)
|
||||||
- [MesloLGS NF Bold.ttf](
|
- [MesloLGS NF Bold.ttf](
|
||||||
|
@ -530,10 +529,9 @@ Download these four ttf files:
|
||||||
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf)
|
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf)
|
||||||
- [MesloLGS NF Bold Italic.ttf](
|
- [MesloLGS NF Bold Italic.ttf](
|
||||||
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf)
|
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf)
|
||||||
|
1. Double-click on each file and click "Install". This will make `MesloLGS NF` font available to all
|
||||||
Double-click on each file and click "Install". This will make `MesloLGS NF` font available to all
|
applications on your system.
|
||||||
applications on your system. Configure your terminal to use this font:
|
1. Configure your terminal to use this font:
|
||||||
|
|
||||||
- **iTerm2**: Type `p10k configure` and answer `Yes` when asked whether to install
|
- **iTerm2**: Type `p10k configure` and answer `Yes` when asked whether to install
|
||||||
*Meslo Nerd Font*. Alternatively, open *iTerm2 → Preferences → Profiles → Text* and set *Font* to
|
*Meslo Nerd Font*. Alternatively, open *iTerm2 → Preferences → Profiles → Text* and set *Font* to
|
||||||
`MesloLGS NF`.
|
`MesloLGS NF`.
|
||||||
|
@ -611,8 +609,7 @@ applications on your system. Configure your terminal to use this font:
|
||||||
```
|
```
|
||||||
You can adjust the font size to your preference. After changing the configuration use `xrdb ~/.Xresources` to reload the config.
|
You can adjust the font size to your preference. After changing the configuration use `xrdb ~/.Xresources` to reload the config.
|
||||||
The new config is applied for all new terminals.
|
The new config is applied for all new terminals.
|
||||||
|
1. Run `p10k configure` to generate a new `~/.p10k.zsh`. The old config may work
|
||||||
**IMPORTANT:** Run `p10k configure` after changing terminal font. The old `~/.p10k.zsh` may work
|
|
||||||
incorrectly with the new font.
|
incorrectly with the new font.
|
||||||
|
|
||||||
_Using a different terminal and know how to set the font for it? Share your knowledge by sending a
|
_Using a different terminal and know how to set the font for it? Share your knowledge by sending a
|
||||||
|
|
32
font.md
32
font.md
|
@ -8,17 +8,16 @@ systems.
|
||||||
|
|
||||||
*FAQ*: [How was the recommended font created?](README.md#how-was-the-recommended-font-created)
|
*FAQ*: [How was the recommended font created?](README.md#how-was-the-recommended-font-created)
|
||||||
|
|
||||||
#### Automatic font installation
|
## Automatic font installation
|
||||||
|
|
||||||
If you are using iTerm2 or Termux, `p10k configure` can install the recommended font for you.
|
If you are using iTerm2 or Termux, `p10k configure` can install the recommended font for you.
|
||||||
Simply answer `Yes` when asked whether to install *Meslo Nerd Font*.
|
Simply answer `Yes` when asked whether to install *Meslo Nerd Font*.
|
||||||
|
|
||||||
If you are using a different terminal, proceed with manual font installation. 👇
|
If you are using a different terminal, proceed with manual font installation. 👇
|
||||||
|
|
||||||
#### Manual font installation
|
## Manual font installation
|
||||||
|
|
||||||
Download these four ttf files:
|
|
||||||
|
|
||||||
|
1. Download these four ttf files:
|
||||||
- [MesloLGS NF Regular.ttf](
|
- [MesloLGS NF Regular.ttf](
|
||||||
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf)
|
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf)
|
||||||
- [MesloLGS NF Bold.ttf](
|
- [MesloLGS NF Bold.ttf](
|
||||||
|
@ -27,10 +26,9 @@ Download these four ttf files:
|
||||||
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf)
|
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf)
|
||||||
- [MesloLGS NF Bold Italic.ttf](
|
- [MesloLGS NF Bold Italic.ttf](
|
||||||
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf)
|
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf)
|
||||||
|
1. Double-click on each file and click "Install". This will make `MesloLGS NF` font available to all
|
||||||
Double-click on each file and click "Install". This will make `MesloLGS NF` font available to all
|
applications on your system.
|
||||||
applications on your system. Configure your terminal to use this font:
|
1. Configure your terminal to use this font:
|
||||||
|
|
||||||
- **iTerm2**: Type `p10k configure` and answer `Yes` when asked whether to install
|
- **iTerm2**: Type `p10k configure` and answer `Yes` when asked whether to install
|
||||||
*Meslo Nerd Font*. Alternatively, open *iTerm2 → Preferences → Profiles → Text* and set *Font* to
|
*Meslo Nerd Font*. Alternatively, open *iTerm2 → Preferences → Profiles → Text* and set *Font* to
|
||||||
`MesloLGS NF`.
|
`MesloLGS NF`.
|
||||||
|
@ -93,8 +91,22 @@ applications on your system. Configure your terminal to use this font:
|
||||||
font_family MesloLGS NF
|
font_family MesloLGS NF
|
||||||
```
|
```
|
||||||
Restart Kitty by closing all sessions and opening a new session.
|
Restart Kitty by closing all sessions and opening a new session.
|
||||||
|
- **WezTerm**: Create or open `$HOME/.config/wezterm/wezterm.lua` and add the following:
|
||||||
**IMPORTANT:** Run `p10k configure` after changing terminal font. The old `~/.p10k.zsh` may work
|
```lua
|
||||||
|
local wezterm = require 'wezterm';
|
||||||
|
return {
|
||||||
|
font = wezterm.font("MesloLGS NF"),
|
||||||
|
}
|
||||||
|
```
|
||||||
|
If the file already exists, only add the line with the font to the existing return.
|
||||||
|
Also add the first line if it is not already present.
|
||||||
|
- **urxvt**: Create or open `~/.Xresources` and add the following line to it:
|
||||||
|
```text
|
||||||
|
URxvt.font: xft:MesloLGS NF:size=11
|
||||||
|
```
|
||||||
|
You can adjust the font size to your preference. After changing the configuration use `xrdb ~/.Xresources` to reload the config.
|
||||||
|
The new config is applied for all new terminals.
|
||||||
|
1. Run `p10k configure` to generate a new `~/.p10k.zsh`. The old config may work
|
||||||
incorrectly with the new font.
|
incorrectly with the new font.
|
||||||
|
|
||||||
_Using a different terminal and know how to set the font for it? Share your knowledge by sending a
|
_Using a different terminal and know how to set the font for it? Share your knowledge by sending a
|
||||||
|
|
Loading…
Reference in a new issue