change formatting in the font installation instructions to make it more obvious where each step begins and ends

pull/1572/head
Roman Perepelitsa 3 years ago
parent 0745592886
commit 543e2d59cf

@ -520,100 +520,97 @@ 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]( https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf)
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf) - [MesloLGS NF Italic.ttf](
- [MesloLGS NF Italic.ttf]( 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
applications on your system.
Double-click on each file and click "Install". This will make `MesloLGS NF` font available to all 1. Configure your terminal to use this font:
applications on your system. Configure your terminal to use this font: - **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
- **iTerm2**: Type `p10k configure` and answer `Yes` when asked whether to install `MesloLGS NF`.
*Meslo Nerd Font*. Alternatively, open *iTerm2 → Preferences → Profiles → Text* and set *Font* to - **Apple Terminal**: Open *Terminal → Preferences → Profiles → Text*, click *Change* under *Font*
`MesloLGS NF`. and select `MesloLGS NF` family.
- **Apple Terminal**: Open *Terminal → Preferences → Profiles → Text*, click *Change* under *Font* - **Hyper**: Open *Hyper → Edit → Preferences* and change the value of `fontFamily` under
and select `MesloLGS NF` family. `module.exports.config` to `MesloLGS NF`.
- **Hyper**: Open *Hyper → Edit → Preferences* and change the value of `fontFamily` under - **Visual Studio Code**: Open *File → Preferences → Settings* (PC) or
`module.exports.config` to `MesloLGS NF`. *Code → Preferences → Settings* (Mac), enter `terminal.integrated.fontFamily` in the search box at
- **Visual Studio Code**: Open *File → Preferences → Settings* (PC) or the top of *Settings* tab and set the value below to `MesloLGS NF`.
*Code → Preferences → Settings* (Mac), enter `terminal.integrated.fontFamily` in the search box at Consult [this screenshot](
the top of *Settings* tab and set the value below to `MesloLGS NF`. https://raw.githubusercontent.com/romkatv/powerlevel10k-media/389133fb8c9a2347929a23702ce3039aacc46c3d/visual-studio-code-font-settings.jpg)
Consult [this screenshot]( to see how it should look like or see [this issue](
https://raw.githubusercontent.com/romkatv/powerlevel10k-media/389133fb8c9a2347929a23702ce3039aacc46c3d/visual-studio-code-font-settings.jpg) https://github.com/romkatv/powerlevel10k/issues/671) for extra information.
to see how it should look like or see [this issue]( - **GNOME Terminal** (the default Ubuntu terminal): Open *Terminal → Preferences* and click on the
https://github.com/romkatv/powerlevel10k/issues/671) for extra information. selected profile under *Profiles*. Check *Custom font* under *Text Appearance* and select
- **GNOME Terminal** (the default Ubuntu terminal): Open *Terminal → Preferences* and click on the `MesloLGS NF Regular`.
selected profile under *Profiles*. Check *Custom font* under *Text Appearance* and select - **Konsole**: Open *Settings → Edit Current Profile → Appearance*, click *Select Font* and select
`MesloLGS NF Regular`. `MesloLGS NF Regular`.
- **Konsole**: Open *Settings → Edit Current Profile → Appearance*, click *Select Font* and select - **Tilix**: Open *Tilix → Preferences* and click on the selected profile under *Profiles*. Check
`MesloLGS NF Regular`. *Custom font* under *Text Appearance* and select `MesloLGS NF Regular`.
- **Tilix**: Open *Tilix → Preferences* and click on the selected profile under *Profiles*. Check - **Windows Console Host** (the old thing): Click the icon in the top left corner, then
*Custom font* under *Text Appearance* and select `MesloLGS NF Regular`. *Properties → Font* and set *Font* to `MesloLGS NF`.
- **Windows Console Host** (the old thing): Click the icon in the top left corner, then - **Windows Terminal** by Microsoft (the new thing): Open `settings.json` (<kbd>Ctrl+Shift+,</kbd>),
*Properties → Font* and set *Font* to `MesloLGS NF`. search for `fontFace` and set the value to `MesloLGS NF` for every profile. If you don't find
- **Windows Terminal** by Microsoft (the new thing): Open `settings.json` (<kbd>Ctrl+Shift+,</kbd>), `fontFace`, add it under *profiles → defaults*. See [this settings file](
search for `fontFace` and set the value to `MesloLGS NF` for every profile. If you don't find https://raw.githubusercontent.com/romkatv/dotfiles-public/aba0e6c4657d705ed6c344d700d659977385f25c/dotfiles/microsoft-terminal-settings.json)
`fontFace`, add it under *profiles → defaults*. See [this settings file]( for example.
https://raw.githubusercontent.com/romkatv/dotfiles-public/aba0e6c4657d705ed6c344d700d659977385f25c/dotfiles/microsoft-terminal-settings.json) - **IntelliJ** (and other IDEs by Jet Brains): Open *IDE → Edit → Preferences → Editor →
for example. Color Scheme → Console Font*. Select *Use console font instead of the default* and set the font
- **IntelliJ** (and other IDEs by Jet Brains): Open *IDE → Edit → Preferences → Editor → name to `MesloLGS NF`.
Color Scheme → Console Font*. Select *Use console font instead of the default* and set the font - **Termux**: Type `p10k configure` and answer `Yes` when asked whether to install
name to `MesloLGS NF`. *Meslo Nerd Font*.
- **Termux**: Type `p10k configure` and answer `Yes` when asked whether to install - **Blink**: Type `config`, go to *Appearance*, tap *Add a new font*, tap *Open Gallery*, select
*Meslo Nerd Font*. *MesloLGS NF.css*, tap *import* and type `exit` in the home view to reload the font.
- **Blink**: Type `config`, go to *Appearance*, tap *Add a new font*, tap *Open Gallery*, select - **Terminus**: Open *Settings → Appearance* and set *Font* to `MesloLGS NF`.
*MesloLGS NF.css*, tap *import* and type `exit` in the home view to reload the font. - **Terminator**: Open *Preferences* using the context menu. Under *Profiles* select the *General*
- **Terminus**: Open *Settings → Appearance* and set *Font* to `MesloLGS NF`. tab (should be selected already), uncheck *Use the system fixed width font* (if not already)
- **Terminator**: Open *Preferences* using the context menu. Under *Profiles* select the *General* and select `MesloLGS NF Regular`. Exit the Preferences dialog by clicking *Close*.
tab (should be selected already), uncheck *Use the system fixed width font* (if not already) - **Guake**: Right Click on an open terminal and open *Preferences*. Under *Appearance*
and select `MesloLGS NF Regular`. Exit the Preferences dialog by clicking *Close*. tab, uncheck *Use the system fixed width font* (if not already) and select `MesloLGS NF Regular`.
- **Guake**: Right Click on an open terminal and open *Preferences*. Under *Appearance* Exit the Preferences dialog by clicking *Close*.
tab, uncheck *Use the system fixed width font* (if not already) and select `MesloLGS NF Regular`. - **MobaXterm**: Open *Settings**Configuration**Terminal* → (under *Terminal look and feel*)
Exit the Preferences dialog by clicking *Close*. and change *Font* to `MesloLGS NF`.
- **MobaXterm**: Open *Settings**Configuration**Terminal* → (under *Terminal look and feel*) - **Asbrú Connection Manager**: Open *Preferences → Local Shell Options → Look and Feel*, enable
and change *Font* to `MesloLGS NF`. *Use these personal options* and change *Font:* under *Terminal UI* to `MesloLGS NF Regular`.
- **Asbrú Connection Manager**: Open *Preferences → Local Shell Options → Look and Feel*, enable To change the font for the remote host connections, go to *Preferences → Terminal Options →
*Use these personal options* and change *Font:* under *Terminal UI* to `MesloLGS NF Regular`. Look and Feel* and change *Font:* under *Terminal UI* to `MesloLGS NF Regular`.
To change the font for the remote host connections, go to *Preferences → Terminal Options → - **WSLtty**: Right click on an open terminal and then on *Options*. In the *Text* section, under
Look and Feel* and change *Font:* under *Terminal UI* to `MesloLGS NF Regular`. *Font*, click *"Select..."* and set Font to `MesloLGS NF Regular`.
- **WSLtty**: Right click on an open terminal and then on *Options*. In the *Text* section, under - **Alacritty**: Create or open `~/.config/alacritty/alacritty.yml` and add the following section
*Font*, click *"Select..."* and set Font to `MesloLGS NF Regular`. to it:
- **Alacritty**: Create or open `~/.config/alacritty/alacritty.yml` and add the following section ```yaml
to it: font:
```yaml normal:
font: family: "MesloLGS NF"
normal: ```
family: "MesloLGS NF" - **Kitty**: Create or open `~/.config/kitty/kitty.conf` and add the following line to it:
``` ```text
- **Kitty**: Create or open `~/.config/kitty/kitty.conf` and add the following line to it: font_family MesloLGS NF
```text ```
font_family MesloLGS NF Restart Kitty by closing all sessions and opening a new session.
``` - **WezTerm**: Create or open `$HOME/.config/wezterm/wezterm.lua` and add the following:
Restart Kitty by closing all sessions and opening a new session. ```lua
- **WezTerm**: Create or open `$HOME/.config/wezterm/wezterm.lua` and add the following: local wezterm = require 'wezterm';
```lua return {
local wezterm = require 'wezterm'; font = wezterm.font("MesloLGS NF"),
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.
If the file already exists, only add the line with the font to the existing return. - **urxvt**: Create or open `~/.Xresources` and add the following line to it:
Also add the first line if it is not already present. ```text
- **urxvt**: Create or open `~/.Xresources` and add the following line to it: URxvt.font: xft:MesloLGS NF:size=11
```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.
You can adjust the font size to your preference. After changing the configuration use `xrdb ~/.Xresources` to reload the config. 1. Run `p10k configure` to generate a new `~/.p10k.zsh`. The old config may work
The new config is applied for all new terminals. incorrectly with the new font.
**IMPORTANT:** Run `p10k configure` after changing terminal font. The old `~/.p10k.zsh` may work
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
PR to expand the list!_ PR to expand the list!_

@ -8,94 +8,106 @@ 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]( https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf)
https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf) - [MesloLGS NF Italic.ttf](
- [MesloLGS NF Italic.ttf]( 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
applications on your system.
Double-click on each file and click "Install". This will make `MesloLGS NF` font available to all 1. Configure your terminal to use this font:
applications on your system. Configure your terminal to use this font: - **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
- **iTerm2**: Type `p10k configure` and answer `Yes` when asked whether to install `MesloLGS NF`.
*Meslo Nerd Font*. Alternatively, open *iTerm2 → Preferences → Profiles → Text* and set *Font* to - **Apple Terminal**: Open *Terminal → Preferences → Profiles → Text*, click *Change* under *Font*
`MesloLGS NF`. and select `MesloLGS NF` family.
- **Apple Terminal**: Open *Terminal → Preferences → Profiles → Text*, click *Change* under *Font* - **Hyper**: Open *Hyper → Edit → Preferences* and change the value of `fontFamily` under
and select `MesloLGS NF` family. `module.exports.config` to `MesloLGS NF`.
- **Hyper**: Open *Hyper → Edit → Preferences* and change the value of `fontFamily` under - **Visual Studio Code**: Open *File → Preferences → Settings* (PC) or
`module.exports.config` to `MesloLGS NF`. *Code → Preferences → Settings* (Mac), enter `terminal.integrated.fontFamily` in the search box at
- **Visual Studio Code**: Open *File → Preferences → Settings* (PC) or the top of *Settings* tab and set the value below to `MesloLGS NF`.
*Code → Preferences → Settings* (Mac), enter `terminal.integrated.fontFamily` in the search box at Consult [this screenshot](
the top of *Settings* tab and set the value below to `MesloLGS NF`. https://raw.githubusercontent.com/romkatv/powerlevel10k-media/389133fb8c9a2347929a23702ce3039aacc46c3d/visual-studio-code-font-settings.jpg)
Consult [this screenshot]( to see how it should look like or see [this issue](
https://raw.githubusercontent.com/romkatv/powerlevel10k-media/389133fb8c9a2347929a23702ce3039aacc46c3d/visual-studio-code-font-settings.jpg) https://github.com/romkatv/powerlevel10k/issues/671) for extra information.
to see how it should look like or see [this issue]( - **GNOME Terminal** (the default Ubuntu terminal): Open *Terminal → Preferences* and click on the
https://github.com/romkatv/powerlevel10k/issues/671) for extra information. selected profile under *Profiles*. Check *Custom font* under *Text Appearance* and select
- **GNOME Terminal** (the default Ubuntu terminal): Open *Terminal → Preferences* and click on the `MesloLGS NF Regular`.
selected profile under *Profiles*. Check *Custom font* under *Text Appearance* and select - **Konsole**: Open *Settings → Edit Current Profile → Appearance*, click *Select Font* and select
`MesloLGS NF Regular`. `MesloLGS NF Regular`.
- **Konsole**: Open *Settings → Edit Current Profile → Appearance*, click *Select Font* and select - **Tilix**: Open *Tilix → Preferences* and click on the selected profile under *Profiles*. Check
`MesloLGS NF Regular`. *Custom font* under *Text Appearance* and select `MesloLGS NF Regular`.
- **Tilix**: Open *Tilix → Preferences* and click on the selected profile under *Profiles*. Check - **Windows Console Host** (the old thing): Click the icon in the top left corner, then
*Custom font* under *Text Appearance* and select `MesloLGS NF Regular`. *Properties → Font* and set *Font* to `MesloLGS NF`.
- **Windows Console Host** (the old thing): Click the icon in the top left corner, then - **Windows Terminal** by Microsoft (the new thing): Open `settings.json` (<kbd>Ctrl+Shift+,</kbd>),
*Properties → Font* and set *Font* to `MesloLGS NF`. search for `fontFace` and set the value to `MesloLGS NF` for every profile. If you don't find
- **Windows Terminal** by Microsoft (the new thing): Open `settings.json` (<kbd>Ctrl+Shift+,</kbd>), `fontFace`, add it under *profiles → defaults*. See [this settings file](
search for `fontFace` and set the value to `MesloLGS NF` for every profile. If you don't find https://raw.githubusercontent.com/romkatv/dotfiles-public/aba0e6c4657d705ed6c344d700d659977385f25c/dotfiles/microsoft-terminal-settings.json)
`fontFace`, add it under *profiles → defaults*. See [this settings file]( for example.
https://raw.githubusercontent.com/romkatv/dotfiles-public/aba0e6c4657d705ed6c344d700d659977385f25c/dotfiles/microsoft-terminal-settings.json) - **IntelliJ** (and other IDEs by Jet Brains): Open *IDE → Edit → Preferences → Editor →
for example. Color Scheme → Console Font*. Select *Use console font instead of the default* and set the font
- **IntelliJ** (and other IDEs by Jet Brains): Open *IDE → Edit → Preferences → Editor → name to `MesloLGS NF`.
Color Scheme → Console Font*. Select *Use console font instead of the default* and set the font - **Termux**: Type `p10k configure` and answer `Yes` when asked whether to install
name to `MesloLGS NF`. *Meslo Nerd Font*.
- **Termux**: Type `p10k configure` and answer `Yes` when asked whether to install - **Blink**: Type `config`, go to *Appearance*, tap *Add a new font*, tap *Open Gallery*, select
*Meslo Nerd Font*. *MesloLGS NF.css*, tap *import* and type `exit` in the home view to reload the font.
- **Blink**: Type `config`, go to *Appearance*, tap *Add a new font*, tap *Open Gallery*, select - **Terminus**: Open *Settings → Appearance* and set *Font* to `MesloLGS NF`.
*MesloLGS NF.css*, tap *import* and type `exit` in the home view to reload the font. - **Terminator**: Open *Preferences* using the context menu. Under *Profiles* select the *General*
- **Terminus**: Open *Settings → Appearance* and set *Font* to `MesloLGS NF`. tab (should be selected already), uncheck *Use the system fixed width font* (if not already)
- **Terminator**: Open *Preferences* using the context menu. Under *Profiles* select the *General* and select `MesloLGS NF Regular`. Exit the Preferences dialog by clicking *Close*.
tab (should be selected already), uncheck *Use the system fixed width font* (if not already) - **Guake**: Right Click on an open terminal and open *Preferences*. Under *Appearance*
and select `MesloLGS NF Regular`. Exit the Preferences dialog by clicking *Close*. tab, uncheck *Use the system fixed width font* (if not already) and select `MesloLGS NF Regular`.
- **Guake**: Right Click on an open terminal and open *Preferences*. Under *Appearance* Exit the Preferences dialog by clicking *Close*.
tab, uncheck *Use the system fixed width font* (if not already) and select `MesloLGS NF Regular`. - **MobaXterm**: Open *Settings**Configuration**Terminal* → (under *Terminal look and feel*)
Exit the Preferences dialog by clicking *Close*. and change *Font* to `MesloLGS NF`.
- **MobaXterm**: Open *Settings**Configuration**Terminal* → (under *Terminal look and feel*) - **Asbrú Connection Manager**: Open *Preferences → Local Shell Options → Look and Feel*, enable
and change *Font* to `MesloLGS NF`. *Use these personal options* and change *Font:* under *Terminal UI* to `MesloLGS NF Regular`.
- **Asbrú Connection Manager**: Open *Preferences → Local Shell Options → Look and Feel*, enable To change the font for the remote host connections, go to *Preferences → Terminal Options →
*Use these personal options* and change *Font:* under *Terminal UI* to `MesloLGS NF Regular`. Look and Feel* and change *Font:* under *Terminal UI* to `MesloLGS NF Regular`.
To change the font for the remote host connections, go to *Preferences → Terminal Options → - **WSLtty**: Right click on an open terminal and then on *Options*. In the *Text* section, under
Look and Feel* and change *Font:* under *Terminal UI* to `MesloLGS NF Regular`. *Font*, click *"Select..."* and set Font to `MesloLGS NF Regular`.
- **WSLtty**: Right click on an open terminal and then on *Options*. In the *Text* section, under - **Alacritty**: Create or open `~/.config/alacritty/alacritty.yml` and add the following section
*Font*, click *"Select..."* and set Font to `MesloLGS NF Regular`. to it:
- **Alacritty**: Create or open `~/.config/alacritty/alacritty.yml` and add the following section ```yaml
to it: font:
```yaml normal:
font: family: "MesloLGS NF"
normal: ```
family: "MesloLGS NF" - **Kitty**: Create or open `~/.config/kitty/kitty.conf` and add the following line to it:
``` ```text
- **Kitty**: Create or open `~/.config/kitty/kitty.conf` and add the following line to it: font_family MesloLGS NF
```text ```
font_family MesloLGS NF Restart Kitty by closing all sessions and opening a new session.
``` - **WezTerm**: Create or open `$HOME/.config/wezterm/wezterm.lua` and add the following:
Restart Kitty by closing all sessions and opening a new session. ```lua
local wezterm = require 'wezterm';
**IMPORTANT:** Run `p10k configure` after changing terminal font. The old `~/.p10k.zsh` may work return {
incorrectly with the new font. 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.
_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
PR to expand the list!_ PR to expand the list!_

Loading…
Cancel
Save