mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-01 01:04:00 +00:00
parent
7c15b26ac9
commit
ce73f6347f
@ -643,14 +643,14 @@ it would have been `nixpkgs/pkgs`.
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ------------------------ | ----------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$lock_symbol]($lock_style) "` | The format for the module. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only_symbol` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_symbol_style` | `"red"` | The style for the read only symbol. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
|
||||
<details>
|
||||
<summary>This module has a few advanced configuration options that control how the directory is displayed.</summary>
|
||||
@ -1122,7 +1122,7 @@ current directory.
|
||||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ----------------- | ------------------------------------------- | ---------------------------------------------------- |
|
||||
| ------------ | ------------------------------------------- | ----------------------------------- |
|
||||
| `format` | `"[\[$all_status$ahead_behind\]]($style) "` | The default format for `git_status` |
|
||||
| `conflicted` | `"="` | This branch has merge conflicts. |
|
||||
| `ahead` | `"⇡"` | The format of `ahead` |
|
||||
@ -1188,6 +1188,7 @@ deleted = "🗑"
|
||||
```
|
||||
|
||||
Show ahead/behind count of the branch being tracked
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
@ -1503,7 +1504,7 @@ To enable it, set `disabled` to `false` in your configuration file.
|
||||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ----------- | --------------------------------------------- | -------------------------------------------------------- |
|
||||
| ----------- | ---------------------- | -------------------------------------------------------- |
|
||||
| `threshold` | `75` | Hide the memory usage unless it exceeds this percentage. |
|
||||
| `format` | `"via $symbol [${ram}( | ${swap})]($style) "` | The format for the module. |
|
||||
| `symbol` | `"🐏"` | The symbol used before displaying the memory usage. |
|
||||
@ -2121,25 +2122,24 @@ To enable it, set `disabled` to `false` in your configuration file.
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ----------------------------- | ------------------------------------------------------ |
|
||||
| ---------- | --------------------------- | ------------------------------------------------------ |
|
||||
| `format` | `[$symbol$status]($style) ` | The format of the module |
|
||||
| `symbol` | `"✖"` | A format string representing the symbol for the status |
|
||||
| `style` | `"bold red"` | The style for the module. |
|
||||
| `disabled` | `true` | Disables the `status` module. |
|
||||
|
||||
|
||||
### Variables
|
||||
|
||||
| Variable | Example | Description |
|
||||
| -------- | -------- | ------------------------------------ |
|
||||
| -------- | ------- | ------------------------------------ |
|
||||
| status | `127` | The exit code of the last command |
|
||||
| symbol | | Mirrors the value of option `symbol` |
|
||||
| style\* | | Mirrors the value of option `style` |
|
||||
|
||||
\*: This variable can only be used as a part of a style string
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```toml
|
||||
|
||||
# ~/.config/starship.toml
|
||||
|
@ -139,7 +139,7 @@ error_symbol = "[✖](bold red) "
|
||||
```diff
|
||||
[directory]
|
||||
-- prefix = "in "
|
||||
++ format = "[$path]($style)[$lock_symbol]($lock_style)"
|
||||
++ format = "[$path]($style)[$read_only]($read_only_style)"
|
||||
```
|
||||
|
||||
#### Environment Variable
|
||||
|
Loading…
Reference in New Issue
Block a user