mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
fix(nodejs): Change symbol to nerd-font (#1649)
The unicode hexagon symbol does not actually fit into a single column with a fixed-width font. does. As starship requires a nerd font as a prerequisite, it's safe to assume that this symbol is available. Symbol link: https://www.nerdfonts.com/cheat-sheet?set=nf-mdi-nodejs In the documentation, I've left the '⬢' symbols in '#### Text Group' as they are, as they will continue displaying correctly in a browser without a nerd font available. I feel like readability is more important than consistency with the new nodejs symbol, especially as this documentation section does not actually refer to nodejs, rather it's just a symbol. As `⬢` has been replaced, use `⌘` instead in documentation to avoid any possible confusion
This commit is contained in:
@@ -85,7 +85,7 @@ In the second part, which is enclosed in a `()`, is a [style string](#style-stri
|
||||
For example:
|
||||
|
||||
- `[on](red bold)` will print a string `on` with bold text colored red.
|
||||
- `[⬢ $version](bold green)` will print a symbol `⬢ ` followed by the content of variable `version`, with bold text colored green.
|
||||
- `[⌘ $version](bold green)` will print a symbol `⌘ ` followed by the content of variable `version`, with bold text colored green.
|
||||
- `[a [b](red) c](green)` will print `a b c` with `b` red, and `a` and `c` green.
|
||||
|
||||
#### Style Strings
|
||||
@@ -1814,7 +1814,7 @@ By default the module will be shown if any of the following conditions are met:
|
||||
| Option | Default | Description |
|
||||
| ------------------- | ------------------------------------ | -------------------------------------------------- |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
|
||||
| `symbol` | `"⬢ "` | A format string representing the symbol of NodeJS. |
|
||||
| `symbol` | `" "` | A format string representing the symbol of NodeJS. |
|
||||
| `detect_extensions` | `["js", "mjs", "cjs", "ts"]` | Which extensions should trigger this moudle. |
|
||||
| `detect_files` | `["package.json", ".node-version"]` | Which filenames should trigger this module. |
|
||||
| `detect_folders` | `["node_modules"]` | Which folders should trigger this module. |
|
||||
|
||||
Reference in New Issue
Block a user