Skip to content

Commit 67a3084

Browse files
committed
✨ Install Fish 4 instead of Fish 3 on Debian/Ubuntu
1 parent 64d2553 commit 67a3084

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/fish/NOTES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Release notes
2+
3+
### 2.0.0
4+
5+
- Install Fish 4 instead of Fish 3 on Debian and Ubuntu.
6+
- Debian 9 support has been removed.

src/fish/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fish",
33
"id": "fish",
4-
"version": "1.3.0",
4+
"version": "2.0.0",
55
"description": "Installs fish shell and Fisher plugin manager (optionally)",
66
"documentationURL": "https://github.com/meaningful-ooo/devcontainer-features/tree/main/src/fish",
77
"options": {

src/fish/install.sh

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,11 @@ echo "Installing fish shell..."
9494
case "${ID}" in
9595
debian|ubuntu)
9696
if [ "${ID}" = "ubuntu" ]; then
97-
echo "deb https://ppa.launchpadcontent.net/fish-shell/release-3/ubuntu ${UBUNTU_CODENAME} main" > /etc/apt/sources.list.d/shells:fish:release:3.list
98-
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x59fda1ce1b84b3fad89366c027557f056dc33ca5" | tee -a /etc/apt/trusted.gpg.d/shells_fish_release_3.asc > /dev/null
97+
echo "deb https://ppa.launchpadcontent.net/fish-shell/release-4/ubuntu ${UBUNTU_CODENAME} main" > /etc/apt/sources.list.d/shells:fish:release:4.list
98+
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x59fda1ce1b84b3fad89366c027557f056dc33ca5" | tee -a /etc/apt/trusted.gpg.d/shells_fish_release_4.asc > /dev/null
9999
elif [ "${ID}" = "debian" ]; then
100-
if [ "${VERSION_ID}" = "9" ]; then
101-
echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_9.0/ /' | tee /etc/apt/sources.list.d/shells:fish:release:3.list
102-
curl -fsSL "https://download.opensuse.org/repositories/shells:fish:release:3/Debian_9.0/Release.key" | tee /etc/apt/trusted.gpg.d/shells_fish_release_3.asc > /dev/null
103-
else
104-
echo "deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_${VERSION_ID}/ /" | tee /etc/apt/sources.list.d/shells:fish:release:3.list
105-
curl -fsSL "https://download.opensuse.org/repositories/shells:fish:release:3/Debian_${VERSION_ID}/Release.key" | tee /etc/apt/trusted.gpg.d/shells_fish_release_3.asc > /dev/null
106-
fi
100+
echo "deb http://download.opensuse.org/repositories/shells:/fish:/release:/4/Debian_${VERSION_ID}/ /" | tee /etc/apt/sources.list.d/shells:fish:release:4.list
101+
curl -fsSL "https://download.opensuse.org/repositories/shells:fish:release:4/Debian_${VERSION_ID}/Release.key" | tee /etc/apt/trusted.gpg.d/shells_fish_release_4.asc > /dev/null
107102
fi
108103
apt-get update -y
109104
apt-get -y install --no-install-recommends fish

0 commit comments

Comments
 (0)