mirror of
https://github.com/starship/starship.git
synced 2024-11-22 16:23:17 +01:00
docs: Small doc touch-ups (#176)
This commit is contained in:
parent
421d22ed5c
commit
7475c3dd72
@ -40,7 +40,6 @@
|
|||||||
|
|
||||||
<h1></h1>
|
<h1></h1>
|
||||||
|
|
||||||
|
|
||||||
Starship is the minimal, blazing fast, and extremely customizable prompt for any shell!<br>
|
Starship is the minimal, blazing fast, and extremely customizable prompt for any shell!<br>
|
||||||
The prompt shows information you need while you're working, while staying sleek and out of the way.
|
The prompt shows information you need while you're working, while staying sleek and out of the way.
|
||||||
|
|
||||||
@ -57,7 +56,10 @@ The prompt shows information you need while you're working, while staying sleek
|
|||||||
- Current Ruby version (`💎`).
|
- Current Ruby version (`💎`).
|
||||||
- Current Python version (`🐍`)
|
- Current Python version (`🐍`)
|
||||||
- Current Go version (`🐹`)
|
- Current Go version (`🐹`)
|
||||||
- Package version of package in current directory (`📦`)
|
- Current version of package in current directory (`📦`)
|
||||||
|
- npm (Node.js)
|
||||||
|
- cargo (Rust)
|
||||||
|
- poetry (Python)
|
||||||
- Current battery level and status
|
- Current battery level and status
|
||||||
- Current Git branch and rich repo status:
|
- Current Git branch and rich repo status:
|
||||||
- `=` — conflicting changes
|
- `=` — conflicting changes
|
||||||
|
@ -96,7 +96,7 @@ can do this in two ways: by changing color (red/green) or by changing its shape
|
|||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Variable | Default | Description |
|
| Variable | Default | Description |
|
||||||
| ---------- | ------- | ---------------------------------------------------- |
|
| ----------------------- | ------- | --------------------------------------------------------------------------------- |
|
||||||
| `symbol` | `"➜"` | The symbol used before the text input in the prompt. |
|
| `symbol` | `"➜"` | The symbol used before the text input in the prompt. |
|
||||||
| `error_symbol` | `"✖"` | The symbol used before text input if the previous command failed. |
|
| `error_symbol` | `"✖"` | The symbol used before text input if the previous command failed. |
|
||||||
| `use_symbol_for_status` | `false` | Indicate error status by changing the symbol. |
|
| `use_symbol_for_status` | `false` | Indicate error status by changing the symbol. |
|
||||||
@ -120,7 +120,7 @@ The `cmd_duration` module shows how long the last command took to execute.
|
|||||||
The module will be shown only if the command took longer than two seconds, or
|
The module will be shown only if the command took longer than two seconds, or
|
||||||
the `min_time` config value, if it exists.
|
the `min_time` config value, if it exists.
|
||||||
|
|
||||||
::: warning Do Not Hook the DEBUG trap in Bash
|
::: warning Do not hook the DEBUG trap in Bash
|
||||||
If you are running Starship in `bash`, do not hook the `DEBUG` trap after running
|
If you are running Starship in `bash`, do not hook the `DEBUG` trap after running
|
||||||
`eval $(starship init $0)`, or this module **will** break.
|
`eval $(starship init $0)`, or this module **will** break.
|
||||||
:::
|
:::
|
||||||
@ -310,7 +310,7 @@ The module will be shown if any of the following conditions are met:
|
|||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Variable | Default | Description |
|
| Variable | Default | Description |
|
||||||
| ---------- | ------- | -------------------------------------------------------- |
|
| ---------- | ------- | --------------------------- |
|
||||||
| `disabled` | `false` | Disables the `ruby` module. |
|
| `disabled` | `false` | Disables the `ruby` module. |
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
@ -399,13 +399,12 @@ The module will be shown if any of the following conditions are met:
|
|||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Variable | Default | Description |
|
| Variable | Default | Description |
|
||||||
| ---------- | ------- | -------------------------------------------------------- |
|
| -------------------- | ---------- | --------------------------------------------------------------------------- |
|
||||||
| `symbol` | `"🐍 "` | The symbol used before displaying the version of Python. |
|
| `symbol` | `"🐍 "` | The symbol used before displaying the version of Python. |
|
||||||
| `disabled` | `false` | Disables the `python` module. |
|
| `disabled` | `false` | Disables the `python` module. |
|
||||||
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
|
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
|
||||||
| `pyenv_prefix` | `"pyenv "` | Prefix before pyenv version display (default display is `pyenv MY_VERSION`) |
|
| `pyenv_prefix` | `"pyenv "` | Prefix before pyenv version display (default display is `pyenv MY_VERSION`) |
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
@ -464,4 +463,3 @@ The module will be shown if any of the following conditions are met:
|
|||||||
[username]
|
[username]
|
||||||
disabled = true
|
disabled = true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user