mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-19 21:27:28 +03:00
Fix readme bug, add context prompt item
This commit is contained in:
parent
59e35f0c3d
commit
687de000cd
27
README.md
27
README.md
@ -53,16 +53,16 @@ All tide variables, unless stated otherwise, begin with the string `tide_`. Thus
|
||||
|
||||
## Prompt Items
|
||||
|
||||
| Item | Description |
|
||||
| ------------------------------- | -------------------------------- |
|
||||
| [cmd_duration](###cmd_duration) | duration of the last run command |
|
||||
| [context](###context) | user@hostname in ssh or root |
|
||||
| [git_prompt](###git_prompt) | git repository status |
|
||||
| [jobs](###jobs) | presence of background jobs |
|
||||
| [prompt_char](###prompt_char) | prompt symbol;turns red on error |
|
||||
| [pwd](###pwd) | current directory |
|
||||
| [status](###status) | exit code of the last command |
|
||||
| [time](###time) | current time |
|
||||
| Item | Description |
|
||||
| ----------------------------- | -------------------------------- |
|
||||
| [cmd_duration](#cmd_duration) | duration of the last run command |
|
||||
| [context](#context) | user@hostname in ssh or root |
|
||||
| [git_prompt](#git_prompt) | git repository status |
|
||||
| [jobs](#jobs) | presence of background jobs |
|
||||
| [prompt_char](#prompt_char) | prompt symbol;turns red on error |
|
||||
| [pwd](#pwd) | current directory |
|
||||
| [status](#status) | exit code of the last command |
|
||||
| [time](#time) | current time |
|
||||
|
||||
### cmd_duration
|
||||
|
||||
@ -72,6 +72,13 @@ All tide variables, unless stated otherwise, begin with the string `tide_`. Thus
|
||||
| cmd_duration_decimals | number of decimals to display after seconds place | 0 |
|
||||
| cmd_duration_threshold | number of milliseconds that duration must exceed to produce output | 3000 |
|
||||
|
||||
### context
|
||||
|
||||
| Name | Description | Default |
|
||||
| ----------------------- | ------------------------------- | ------- |
|
||||
| tide_context_root_color | color of context when root user | D7AF00 |
|
||||
| tide_context_ssh_color | color of context when in SSH | D7AF87 |
|
||||
|
||||
### git_prompt
|
||||
|
||||
Tide's git capabilities are currently inherited from fish's built-in [fish_git_prompt](https://fishshell.com/docs/current/cmds/fish_git_prompt.html). Modify those variables to configure tide's git prompt.
|
||||
|
Loading…
Reference in New Issue
Block a user