Skip to content

Commit

Permalink
feat(preset): Add no-nerd-font preset (#4517)
Browse files Browse the repository at this point in the history
* feat(preset): Add powerline-only-symbols preset

Related to #2563 & #3544

* Modify symbols for pulumi and erlang

* Change some wording and add default notification

* Update name of preset

Co-authored-by: Kevin Song <chips@ksong.dev>
  • Loading branch information
segevfiner and chipbuster committed Nov 1, 2022
1 parent d3cf18f commit 4d86a4c
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/.vuepress/public/presets/toml/no-nerd-font.toml
@@ -0,0 +1,15 @@
[battery]
full_symbol = ""
charging_symbol = ""
discharging_symbol = ""
unknown_symbol = ""
empty_symbol = ""

[erlang]
symbol = ""

[nodejs]
symbol = "[⬢](bold green) "

[pulumi]
symbol = "🧊 "
11 changes: 11 additions & 0 deletions docs/presets/README.md
Expand Up @@ -11,6 +11,17 @@ This preset changes the symbols for each module to use Nerd Font symbols.

[![Screenshot of Nerd Font Symbols preset](/presets/img/nerd-font-symbols.png "Click to view Nerd Font Symbols preset")](./nerd-font)

## [No Nerd Fonts](./no-nerd-font.md)

This preset changes the symbols for several modules so that no Nerd Font symbols
are used anywhere in the prompt.

::: tip
This preset will become the default preset [in a future release of starship](https://github.com/starship/starship/pull/3544).
:::

[Click to view No Nerd Font preset](./no-nerd-font)

## [Bracketed Segments](./bracketed-segments.md)

This preset changes the format of all the built-in modules to show their segment
Expand Down
20 changes: 20 additions & 0 deletions docs/presets/no-nerd-font.md
@@ -0,0 +1,20 @@
[Return to Presets](./README.md#no-nerd-fonts)

# No Nerd Fonts Preset

This preset restricts the use of symbols to those from emoji and powerline sets.

This means that even without a Nerd Font installed, you should be able to view
all module symbols.

This preset will become the default preset in a future release of starship.

### Configuration

```sh
starship preset no-nerd-font > ~/.config/starship.toml
```

[Click to download TOML](/presets/toml/no-nerd-font.toml)

<<< @/.vuepress/public/presets/toml/no-nerd-font.toml

0 comments on commit 4d86a4c

Please sign in to comment.