mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
feat(directory): add before_repo_root_style (#4595)
This commit is contained in:
+15
-14
@@ -1103,20 +1103,21 @@ it would have been `nixpkgs/pkgs`.
|
||||
|
||||
### Options
|
||||
|
||||
| Option | 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)[$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` | `'🔒'` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `'red'` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `''` | The symbol to prefix to truncated paths. eg: '…/' |
|
||||
| `repo_root_style` | | The style for the root of the git repo. The default value is equivalent to `style`. |
|
||||
| `repo_root_format` | `'[$before_root_path]($style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) '` | The format of a git repo when `repo_root_style` is defined. |
|
||||
| `home_symbol` | `'~'` | The symbol indicating home directory. |
|
||||
| `use_os_path_sep` | `true` | Use the OS specific path separator instead of always using `/` (e.g. `\` on Windows) |
|
||||
| Option | 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)[$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` | `'🔒'` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `'red'` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `''` | The symbol to prefix to truncated paths. eg: '…/' |
|
||||
| `before_repo_root_style` | | The style for the path segment above the root of the git repo. The default value is equivalent to `style`. |
|
||||
| `repo_root_style` | | The style for the root of the git repo. The default value is equivalent to `style`. |
|
||||
| `repo_root_format` | `'[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) '` | The format of a git repo when `before_repo_root_style` and `repo_root_style` is defined. |
|
||||
| `home_symbol` | `'~'` | The symbol indicating home directory. |
|
||||
| `use_os_path_sep` | `true` | Use the OS specific path separator instead of always using `/` (e.g. `\` on Windows) |
|
||||
|
||||
<details>
|
||||
<summary>This module has a few advanced configuration options that control how the directory is displayed.</summary>
|
||||
|
||||
Reference in New Issue
Block a user