From 4bb94461aaf5fe197d2aebab312989ac60112883 Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Tue, 23 Jan 2024 10:43:14 +0100 Subject: [PATCH] :boom: add newest fish gpg --- install_fish.sh | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/install_fish.sh b/install_fish.sh index c54abf9..043650a 100644 --- a/install_fish.sh +++ b/install_fish.sh @@ -1,26 +1,23 @@ #!/bin/bash set -e -# fish version on ubuntu 22.04 -# FISH_VERSION=3.3.1+ds-3 -# probably works on ubuntu 20.04 but couldn't be found in codespaces apt -# FISH_VERSION=3.1.0-1.2 -# fish version on ubuntu 20.04 (codespaces ubuntu version) -# TODO: add if statement to make github workflows test to succeed -FISH_VERSION=3.1.2-3+deb11u1 - -# I'd like to use fish, please echo >&2 "=====================================================================" -echo >&2 " >> apt updating" -sudo apt update echo >&2 " >> installing fish" -sudo apt-get install -y fish=${FISH_VERSION} + +echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_12/ /' | \ + sudo tee /etc/apt/sources.list.d/shells:fish:release:3.list + +curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_12/Release.key | \ + gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null + +sudo apt update +sudo apt install -y fish echo >&2 " >>> changing shell to fish" sudo chsh -s /usr/bin/fish $USER echo >&2 " >>> link config.fish from dotfiles" -mkdir -p ~/.config/fish -ln -s -f /tmp/dotfiles/.config/fish/config.fish ~/.config/fish/config.fish +# mkdir -p ~/.config/fish +# ln -s -f /tmp/dotfiles/.config/fish/config.fish ~/.config/fish/config.fish echo >&2 " >>> echo $0"