feat: Add option to control git directory truncation (#165)

This commit is contained in:
Saghm Rossi
2019-08-16 23:29:22 -04:00
committed by Kevin Song
parent d065dff695
commit 84c394e7b0
4 changed files with 81 additions and 13 deletions
+5 -4
View File
@@ -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