CodyKochmann
2/26/2018 - 5:47 PM

This script downloads and installs fish shell from source on most linux systems.

This script downloads and installs fish shell from source on most linux systems.

#!/bin/bash
# @Author: cody kochmann
# @Date:   2018-02-23 16:54:37
# @Last Modified by:   cody kochmann
# @Last Modified time: 2018-02-26 12:53:05

# use this script to download and install fish on your system from source

version='2.7.1'
dir_name="fish-${version}"
tar_name="${dir_name}.tar.gz"

function untar(){
    tar --extract --gzip --verbose --file "$@"
}

wget "https://github.com/fish-shell/fish-shell/releases/download/${version}/${tar_name}"
untar "$tar_name"
rm -v "$tar_name"

pushd "$dir_name"
./configure && make && make install
popd

unset version
unset dir_name
unset tar_name
unset untar