Setup the fish shell on Windows — step by step
fish shell is one of the most popular shells for the terminal in Mac and Linux. It is also available on Windows 10 with the introduction of Windows Subsytem for Linux (WSL). My favorite feature of the fish shell is autosuggestion.
In this post, I will guide you step by step on how to set up it on Windows.
Step 1 — Installing Linux Subsystem
There are many ways to install WLS, ill showing easiest.
- Firstly, launch Settings.
- Then, tap on Applications.
- After that, tap the ‘Programs and Features’ option. It shall be located under the ‘Related settings’ part.
- Next, tap on a ‘Turn Windows features on or off’ tab.
- Then, put a tick on the Windows Subsystem for Linux square.
- After that, tap on the OK option.
- Lastly, tap on the Restart now option.
Run Bash on Windows
- Open a command prompt (CMD). Type “cmd” in the start.
- Type
bash
and hit enter.
You will be prompt to accept the license. just type y
and hit enter. After you have accepted the License, the Ubuntu user-mode image will be downloaded and a “Bash on Ubuntu on Windows” shortcut will be added to your start menu.
To launch Bash on Windows, either run bash
at a cmd/PowerShell command-prompt, or use the start menu shortcut.
Step 2 — Installing fish
Install fish repository
$ sudo apt-add-repository ppa:fish-shell/release-3
Update and upgrade repository
$ sudo apt-get update && sudo apt-get upgrade
Install fish shell
$ sudo apt-get install fish
Congratulation, you are done. Enjoy.
Make your fish terminal look good and work well. Read the below article to find out how. https://midnightgamer.medium.com/make-your-windows-terminal-look-like-and-work-like-macs-zsh-16ed8c3fa329