Solution

cd /etc/yum.repos.d/
sudo wget https://download.opensuse.org/repositories/shells:fish/CentOS_8/shells:fish.repo
sudo yum install fish

More documents about fish shell can find at here https://fishshell.com