About installing fish, a very helpful modern bash alternative in WSL2/Ubuntu. Enjoy the benefits of the powerline and nice helpers and visualizations in your common workflows.
Install Fish
- Install fish
sudo apt install fish
- Switch to fish
fish
- Set fish as default shell
chsh -s /usr/bin/fish
Hint: Switch back to bash with chsh -s /usr/bin/bash
Install ‘Oh My Fish’ with the theme ‘Bob The Fish’
Install Oh My Fish
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
Install Theme: Bob the Fish
omf install bobthefish
Install powerline fonts
- Install Powerline fonts (Ubuntu/Debian/Mint Linux)
sudo apt-get update
sudo apt-get install fonts-powerline
Fix fonts using WSL or Remote
The powerline and theme of oh my fish / bob the fish will not be shown correctly. Instead fancy symbols are shown.
Make sure that your console / terminal application like Windows Terminal or Visual Studio Code are using a font with is patched with powerline symbols.
Under windows, a good suggestion is to use MS font Cascadia in its variant Cascadia (Code|Mono) PL. You can find it at Cascadia Code on Github.
Useful links
Please leave a comment if there is something wrong or missing. Or if you have any questions. Have fun!
If you enjoyed this article and would like to support my work, feel free to buy me a coffee! Your support helps me continue creating content. Thank you!