Skip to content

Instantly share code, notes, and snippets.

@kingspp
Forked from masih/fish_shell_local_install.sh
Last active May 8, 2020 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kingspp/64310ea79b87f2265e0375424ce54a23 to your computer and use it in GitHub Desktop.
Save kingspp/64310ea79b87f2265e0375424ce54a23 to your computer and use it in GitHub Desktop.
Installs Fish Shell without root access
#!/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.1.2
DEST_DIR=~/.opt/
# create our directories
mkdir -p $HOME/local $HOME/fish_shell_tmp
cd $HOME/fish_shell_tmp
# download source files for Fish Shell
wget http://github.com/fish-shell/fish-shell/releases/download/${FISH_SHELL_VERSION}/fish-${FISH_SHELL_VERSION}.tar.gz
# extract files, configure, and compile
tar xvzf fish-${FISH_SHELL_VERSION}.tar.gz
cd fish-${FISH_SHELL_VERSION}
./configure --prefix=$HOME/local --disable-shared
make
make DESTDIR=${DEST_DIR} install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment