Installing fish-shell on Windows MSYS2

ahaoboyahaoboy
1 min read

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

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

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
0
Subscribe to my newsletter

Read articles from ahaoboy directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

ahaoboy
ahaoboy