DEV Community

阿豪
阿豪

Posted on

Installing fish-shell on Windows MSYS2

Thanks to Berrysoft for adding support for fish on Windows MSYS2. The latest repository is available at https://github.com/Berrysoft/fish-msys2.

The latest fish version 4.0.2 and above requires a runtime version of at least 3.6. If your runtime version is 3.5 or below, you can try the method described in this Reddit post to install fish 4.0.1.

To check your MSYS2 runtime version, use the following command:

pacman -Q msys2-runtime
# Example output: msys2-runtime 3.6.3-3
Enter fullscreen mode Exit fullscreen mode

You can complete the installation by executing the following bash script:

cat << EOF >> /etc/pacman.conf

[fish4]
Server = https://raw.githubusercontent.com/Berrysoft/fish-msys2/publish
SigLevel = Never

EOF

pacman -Syy

pacman -S fish4/fish
Enter fullscreen mode Exit fullscreen mode

If everything goes smoothly, you can use the latest version of fish. Verify the installation with:

fish --version
# Example output: fish, version 4.0.2-Berrysoft-5
Enter fullscreen mode Exit fullscreen mode

Top comments (0)