-
-
Save piridium/c761d8a751091e4bfe59064012660cda to your computer and use it in GitHub Desktop.
Install Fish Shell 3+ on Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This is a quick installer | |
# script I made to build and install the latest version of | |
# fish on my Raspberry Pi. | |
# | |
# Use at your own risk as I have made no effort to make | |
# this install safe! | |
set -e | |
FISH_VERSION="3.3.2" | |
# Install dependencies | |
sudo apt-get install build-essential cmake ncurses-dev libncurses5-dev libpcre2-dev gettext | |
# Create a build directory | |
mkdir fish-install | |
cd fish-install | |
# Download and extract the latest build (could clone from git but that's less stable) | |
wget https://github.com/fish-shell/fish-shell/releases/download/$FISH_VERSION/fish-$FISH_VERSION.tar.xz | |
tar xf fish-$FISH_VERSION.tar.xz | |
cd fish-$FISH_VERSION | |
# Build and install | |
cmake . | |
make | |
sudo make install | |
# Add to shells | |
echo /usr/local/bin/fish | sudo tee -a /etc/shells | |
# Set as user's shell | |
chsh -s /usr/local/bin/fish | |
# Delete build directory | |
cd ../../ | |
rm -rf fish-install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment