mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat: Allow directory truncation length to be configured (#120)
This allows the directory truncation length to be configured. Previously, it was hard-coded to truncate to 3 parent directories.
This commit is contained in:
committed by
Matan Kushner
parent
ab46710fc4
commit
5dbf4381ac
+13
-3
@@ -116,9 +116,19 @@ git repo that you're currently in.
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ------- | -------------------------------- |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| Variable | Default | Description |
|
||||
| ------------------- | ------- | -------------------------------------- |
|
||||
| `truncation_length` | `3` | Truncates to this many parent folders. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
|
||||
### Example
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[directory]
|
||||
truncation_length = 8
|
||||
```
|
||||
|
||||
## Git Branch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user