Initializer/fish_shell_install.sh
Segcolt ffd406a3f8 Fix this repo so that it doesn't have all that mess
It should now be quicker to download it... It just
won't have the history anymore, but meh.
2024-10-02 14:20:03 -03:00

27 lines
719 B
Bash
Executable File

#!/bin/bash
# Script for installing Fish Shell on systems without root access.
# Fish Shell will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
FISH_SHELL_VERSION=3.7.1
# create our directories
mkdir -p $HOME/local $HOME/fish_shell_tmp
cd $HOME/fish_shell_tmp
# download source files for Fish Shell
wget https://github.com/fish-shell/fish-shell/releases/download/$FISH_SHELL_VERSION/fish-$FISH_SHELL_VERSION.tar.xz
# extract files, configure, and compile
tar xvJf fish-${FISH_SHELL_VERSION}.tar.xz
mkdir fish-${FISH_SHELL_VERSION}/build
cd fish-${FISH_SHELL_VERSION}/build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local ..
make
make install