26 lines
807 B
Bash
26 lines
807 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"
|
|
mkdir -p ~/.config/fish
|
|
ln -s -f /tmp/dotfiles/.config/fish/config.fish ~/.config/fish/config.fish
|
|
|
|
echo >&2 " >>> echo $0"
|