🌊 The ultimate Fish prompt.
Go to file
2021-12-07 22:01:39 -08:00
.github Use python flavor 2021-12-07 13:05:39 -08:00
.vscode Add extension recommendations 2021-12-07 13:16:54 -08:00
completions Improve completions 2021-11-12 15:48:20 -08:00
conf.d Don't edit tide_.*_prompt_items anymore, instead use internal vars 2021-11-24 15:45:48 -08:00
functions Add closest_color.py 2021-12-07 10:42:16 -08:00
tests Fix tests 2021-11-25 09:47:53 -08:00
tools Add color swatch script 2021-12-07 22:01:39 -08:00
.gitignore isolate tests and add Makefile (#179) 2021-07-25 10:46:58 -07:00
.mega-linter.yml Use .mega-linter.yml file, disable GITHUB_STATUS_REPORTER 2021-11-28 21:08:56 -08:00
CHANGELOG.md Appease linters 2021-11-03 22:16:21 -07:00
CODE_OF_CONDUCT.md Minor edits 2020-07-04 14:01:35 -07:00
CONTRIBUTING.md Minor edits to contributing 2021-10-13 15:47:56 -07:00
LICENSE.md Convert license to markdown 2020-07-04 13:53:26 -07:00
Makefile Fix tests 2021-11-25 09:47:53 -08:00
README.md Make manual install fetch v5 instead of main 2021-11-06 15:29:54 -07:00


ci_badge license_badge blazing_badge

The ultimate Fish prompt.

  • Out of the box: With three compelling styles and lots of options, you can have your ready-to-run cake and customize it too.
  • Flexible: Move content around or remove it, all without ever touching a line of code.
  • Extensible: Create custom content with simple Fish functions that integrate seamlessly.
  • Fast: Asynchronous rendering makes Tide the fastest full-featured Fish prompt.

Installation

System Requirements

Install with Fisher:

fisher install IlanCosman/tide@v5
Install manually

This script may not work for all use cases.

set -l _tide_tmp_dir (command mktemp -d)
curl https://codeload.github.com/ilancosman/tide/tar.gz/v5 | tar -xzC $_tide_tmp_dir
command cp -R $_tide_tmp_dir/*/{completions,conf.d,functions} $__fish_config_dir
exec fish --init-command "set -g fish_greeting; emit _tide_init_install"

Features

Configuration Wizard

Run tide configure to open the the wizard in your terminal.

configuration_wizard


Extensible

If there isn't an item that fits your needs you can make your own (and hopefully submit a pull request) or ask for it to be made by opening an issue.



Flexible

Using the items list for each side of the prompt, you have full control of which and where prompt sections display.



Asynchronous Rendering

Tide runs everything in the background so that your prompt will always feel snappy.

async

Asynchronous rendering also allows Tide to display more information than other prompts. For example, most prompts don't display the number of untracked, modified, or deleted files in a git repository because it's too slow to compute.


Multi-Line Right Prompt

Fish can't do that yet can it!

Tide is the only Fish prompt capable of displaying a multi-line right prompt. All you have to do is add the newline item.


Current directory that just works

The current working directory is the the most important part of any shell prompt. Tide highlights the critical parts and truncates with the least loss of information when horizontal space is scarce.

pwd

When the full directory doesn't fit, the leftmost segment is truncated to its shortest unique prefix. In the example above, Documents becomes Doc instead of D because that could be confused with Downloads. Important segments are bold and never truncated. These include the first and the last segments, roots of Git repositories etc.

Tip: If you copy-paste a truncated path and hit tab, it will complete to the original.

Documentation

See the Wiki for documentation.

Contributing

From the smallest typo to the largest feature, contributions of any size or experience level are welcome!

If you're interested in helping contribute to Tide, please take a look at the Contributing Guide.

Fonts

Meslo Nerd Font

A gorgeous monospace font designed by Jim Lyles for Bitstream, customized for Apple, enhanced by André Berg, and finally patched by Roman Perepelitsa of Powerlevel10k with scripts originally developed by Ryan McIntyre of Nerd Fonts. Contains all the glyphs and symbols that Tide may need. Battle-tested in dozens of different terminals on all major operating systems.

Font Installation

Download these four ttf files:

Open each file and click "Install". This will make the MesloLGS NF font available to all applications on your system. Configure your terminal to use this font.

Acknowledgments

  • Powerlevel10k - Inspired Tide's creation. Because Tide aims to replicate Powerlevel10k's amazing capabilities, small sections of documentation have been borrowed when rewording the language would reduce clarity.
  • Starship - Inspired elements of Tide's documentation and community health files.
  • Spacefish - Inspired some of Tide's items.