26 lines
651 B
Bash
Executable File
26 lines
651 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 http://fishshell.com/files/${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 install
|