dotfiles/install_fish.sh
DannyDannyDanny 18848e5a94 link config.fish
2023-11-10 18:24:52 +01:00

25 lines
773 B
Bash

#!/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 >&2 " >>> changing shell to fish"
sudo chsh -s /usr/bin/fish $USER
echo >&2 " >>> link config.fish from dotfiles"
ln -s -f /tmp/dotfiles/.config/config.fish ~/.config/config.fish
echo >&2 " >>> echo $0"