1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2025-01-27 00:58:37 +00:00

docs: fix typos (#4889)

This commit is contained in:
Zhizhen He 2023-02-07 19:52:41 +08:00 committed by GitHub
parent c019630653
commit f6c9fd5348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 16 deletions

View File

@ -46,7 +46,7 @@ os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\star
### Logging ### Logging
By default starship logs warnings and errors into a file named `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, where the session key is corresponding to a instance of your terminal. By default starship logs warnings and errors into a file named `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, where the session key is corresponding to an instance of your terminal.
This, however can be changed using the `STARSHIP_CACHE` environment variable: This, however can be changed using the `STARSHIP_CACHE` environment variable:
```sh ```sh
@ -1144,7 +1144,7 @@ prefixes or development directories (i.e. Java). Note that this will disable the
`fish_style_pwd_dir_length` interacts with the standard truncation options in a way that can be surprising at first: if it's non-zero, `fish_style_pwd_dir_length` interacts with the standard truncation options in a way that can be surprising at first: if it's non-zero,
the components of the path that would normally be truncated are instead displayed with that many characters. For example, the path the components of the path that would normally be truncated are instead displayed with that many characters. For example, the path
`/built/this/city/on/rock/and/roll`, which would normally be displayed as as `rock/and/roll`, would be displayed as `/built/this/city/on/rock/and/roll`, which would normally be displayed as `rock/and/roll`, would be displayed as
`/b/t/c/o/rock/and/roll` with `fish_style_pwd_dir_length = 1`--the path components that would normally be removed are displayed with `/b/t/c/o/rock/and/roll` with `fish_style_pwd_dir_length = 1`--the path components that would normally be removed are displayed with
a single character. For `fish_style_pwd_dir_length = 2`, it would be `/bu/th/ci/on/rock/and/roll`. a single character. For `fish_style_pwd_dir_length = 2`, it would be `/bu/th/ci/on/rock/and/roll`.
@ -3870,7 +3870,7 @@ To enable it, set `disabled` to `false` in your configuration file.
### Variables ### Variables
| Variable | Example | Description | | Variable | Example | Description |
| -------------- | ------- | ------------------------------------------------------------------------------------------- | | -------------- | ------- | ------------------------------------------------------------------------------------------ |
| status | `127` | The exit code of the last command | | status | `127` | The exit code of the last command |
| hex_status | `0x7F` | The exit code of the last command in hex | | hex_status | `0x7F` | The exit code of the last command in hex |
| int | `127` | The exit code of the last command | | int | `127` | The exit code of the last command |
@ -3878,7 +3878,7 @@ To enable it, set `disabled` to `false` in your configuration file.
| signal_number | `9` | Signal number corresponding to the exit code, only if signalled | | signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled | | signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
| maybe_int | `7` | Contains the exit code number when no meaning has been found | | maybe_int | `7` | Contains the exit code number when no meaning has been found |
| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format | | pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
| symbol | | Mirrors the value of option `symbol` | | symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` | | style\* | | Mirrors the value of option `style` |
@ -4257,7 +4257,7 @@ format = '[🆅 $repo](bold blue) '
## Zig ## Zig
By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). By default the `zig` module shows the currently installed version of [Zig](https://ziglang.org/).
The module will be shown if any of the following conditions are met: The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file - The current directory contains a `.zig` file

View File

@ -96,7 +96,7 @@ This will output the trace log and a breakdown of all modules that either took
more than 1ms to execute or produced some output. more than 1ms to execute or produced some output.
Finally if you find a bug you can use the `bug-report` command to create a Finally if you find a bug you can use the `bug-report` command to create a
Github issue. GitHub issue.
```sh ```sh
starship bug-report starship bug-report