This is a cheat sheet for configuring fish shell with the tide prompt on Linux.
A word of caution: If you happen to run Ubuntu, its version of fish can be quite outdated to the point that tide won’t work with it.
-Install/Update fish shell to the latest by adding the ppa
sudo add-apt-repository ppa:fish-shell/release-3
sudo apt update
The fish shell has its own plugin manager called ‘fisher’.
We will need fisher to install the tide prompt plugin.
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
install the tide prompt
fisher install IlanCosman/tide@v6
run the configuration script
tide has it’s own built-in configuration script that will get you most of the way there, most of the time:
If you’re happy with the results, congrats, you’re done!
“context” is the configuration name given to the part of the prompt that displays user@hostname. In a default tide config it is shown on the right-side prompt.
“pwd” stands for “print working directory” This is where we show the current working directory in the prompt. By default, it’s shown on the left-side.
We can change the background color of the pwd section by setting two universal environment variables:
We can set the foreground colors of the parent directories with:
We can set the foreground colors of the active working directory with:
With these settings you get something like /etc/systemd/system