How do I install Fish Shell on AWS Linux

You can use Fish's Red Hat 6 package repository, which works out fine for Amazon Linux 2:

sudo yum-config-manager --add-repo http://fishshell.com/files/linux/RedHat_RHEL-6/fish.release:2.repo

After that you can install it normally.

sudo yum -y install fish

Same way as on Centos 6.

from:

cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/shells:fish:release:2/CentOS_6/shells:fish:release:2.repo
yum install fish

2021 update:

If you're running a newer version of AWS Linux - run rpm -E %{rhel} to see the RHEL version, and then use one of the links here for the wget command. For instance, if the RHEL version is 7, run as root:

cd /etc/yum.repos.d/
wget --no-check-certificate https://download.opensuse.org/repositories/shells:fish:release:3/CentOS_7/shells:fish:release:3.repo
yum install fish