tide/README.md

94 lines
4.6 KiB
Markdown
Raw Normal View History

2020-05-19 07:16:05 +03:00
# Tide ![Fish_Version_Shield](https://img.shields.io/badge/fish-3.1.0-blue)
2020-04-03 01:39:10 +03:00
2020-05-20 04:08:57 +03:00
Tide is a Fish theme inspired by [Powerlevel10k](https://github.com/romkatv/powerlevel10k/). It aims to provide a powerful, flexible, and out-of-the-box experience.
2020-04-03 02:30:40 +03:00
2020-05-13 06:17:03 +03:00
![Prompt_Connection](/media/images/Prompt_Connection.png)
# Installation
2020-04-03 02:30:40 +03:00
Run the install script:
2020-04-30 05:19:17 +03:00
```fish
2020-05-19 06:03:25 +03:00
curl -s https://raw.githubusercontent.com/IlanCosman/tide/master/install.fish | source; and tide_install
2020-04-03 02:30:40 +03:00
```
2020-05-13 06:17:03 +03:00
# Features
2020-05-20 08:14:01 +03:00
### Multi-Line Right Prompt
2020-05-20 04:08:57 +03:00
> Fish cant do _that_ yet can it?
![Multiple_Line_Right_Prompt](/media/images/Multiple_Line_Right_Prompt.png)
2020-05-20 08:14:01 +03:00
### Configuration Wizard
2020-05-20 04:08:57 +03:00
Type `tide configure` to open the the wizard in your terminal.
![Configuration_Wizard](/media/gifs/Configuration_Wizard.gif)
2020-05-20 08:14:01 +03:00
### Extensible
2020-05-20 04:08:57 +03:00
If there isn't a prompt item that fits your needs, make your own!
![Extensible](/media/images/Extensible.png)
# Configuration
2020-05-20 08:14:01 +03:00
All tide variables, unless stated otherwise, begin with the string `tide_`. Thus, variables in this section will be denoted as `example_variable` but will actually be `tide_example_variable`.
2020-05-20 04:08:57 +03:00
2020-05-20 08:14:01 +03:00
## General Variables
2020-05-13 06:17:03 +03:00
2020-05-20 08:14:01 +03:00
| Name | Description | Default |
| ------------------ | ------------------------------------------ | ------------------------------------------ |
| newline | add empty line before each prompt | true |
| left_prompt_items | order of the left prompt items to display | 'pwd' 'git_prompt' 'newline' 'prompt_char' |
| right_prompt_items | order of the right prompt items to display | 'status' 'cmd_duration' 'context' 'jobs' |
2020-05-13 06:17:03 +03:00
### prompt connection
| Variable | Description | Default |
| ----------------------- | --------------------------------------------------------------------- | ------- |
| prompt_connection_color | color of prompt connection | 6C6C6C |
| prompt_connection_icon | repeated symbol that spans gap between left and right sides of prompt | ' ' |
2020-05-20 08:14:01 +03:00
## 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 |
### cmd_duration
| Variable | Description | Default |
| ---------------------- | ------------------------------------------------------------------ | ------- |
| cmd_duration_color | color of cmd_duration output | 87875F |
| 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 |
### 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.
2020-05-13 06:17:03 +03:00
2020-05-20 08:14:01 +03:00
### pwd
| Variable | Description | Default |
| ------------------- | ------------------------------------------------------------------------ | -------------- |
| pwd_shorten_margin | number of columns distance to maintain between pwd and edge of terminal | 5 |
| pwd_unwritable_icon | symbol to display when the current directory is not writable by the user | '' #Lock icon |
2020-05-13 06:17:03 +03:00
### status
| Variable | Description | Default |
| -------------------- | -------------------------------------------------------------- | ------- |
| status_success_icon | symbol to display when the last command in a pipeline succeeds | '✔' |
| status_success_color | color of successful pipeline's status | 5FAF00 |
| status_failure_icon | symbol to display when the last command in a pipeline fails | '✘' |
| status_failure_color | color of failed pipeline's status | D70000 |