Skip to content

Instantly share code, notes, and snippets.

@jonshado
Forked from masih/fish_shell_local_install.sh
Last active March 23, 2018 18:52
Show Gist options
  • Save jonshado/2dba0e86104228e7219bdfbe855d97fe to your computer and use it in GitHub Desktop.
Save jonshado/2dba0e86104228e7219bdfbe855d97fe 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
#updated shell version to current as of 3/23/2018
FHISH_SHELL_VERSION=2.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 http://fishshell.com/files/${FHISH_SHELL_VERSION}/fish-${FHISH_SHELL_VERSION}.tar.gz
# new repo location on github for fish download as of 3/23/2018
wget https://github.com/fish-shell/fish-shell/releases/download/${FHISH_SHELL_VERSION}/fish-${FHISH_SHELL_VERSION}.tar.gz
# extract files, configure, and compile
tar xvzf fish-${FHISH_SHELL_VERSION}.tar.gz
cd fish-${FHISH_SHELL_VERSION}
./configure --prefix=$HOME/local --disable-shared
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment