Add hostname_parts

Ilan Cosman 2022-09-05 16:21:00 -04:00
parent a95b1944ea
commit 7ef53adc74

@ -124,13 +124,14 @@ set --universal tide_left_prompt_items context $tide_left_prompt_items
### context
| Variable | Description | Type |
| -------------- | ------------------------------------------------------ | ------- |
| always_display | display context when not in SSH or root user | boolean |
| bg_color | background color of the context item | color |
| color_default | color of the context item when not in SSH or root user | color |
| color_root | color of the context item when the user is root | color |
| color_ssh | color of the context item when in SSH | color |
| Variable | Description | Type |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- |
| always_display | display context when not in SSH or root user | boolean |
| bg_color | background color of the context item | color |
| color_default | color of the context item when not in SSH or root user | color |
| color_root | color of the context item when the user is root | color |
| color_ssh | color of the context item when in SSH | color |
| hostname_parts | The number of hostname parts, split on dots, to display. For example, if your hostname is `foo.bar.baz`, 5 would show you `user@foo.bar.baz`, 1 would show you `user@foo`, and 0 would show you `user` | int |
### docker