mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat: Add option to control git directory truncation (#165)
This commit is contained in:
@@ -153,10 +153,11 @@ git repo that you're currently in.
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ------------------- | ------- | ------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| 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. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user