From f3cd23837609c8fecfef1e21ddc31cd885a697e4 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 3 Jun 2024 21:33:01 +0200 Subject: Support Ubuntu 24.04 --- scripts/p7s/bash.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/p7s/bash.py b/scripts/p7s/bash.py index b5c503d0..22271dee 100644 --- a/scripts/p7s/bash.py +++ b/scripts/p7s/bash.py @@ -7,8 +7,12 @@ def is_ubuntu_2204(): return platform.freedesktop_os_release().get("VERSION_CODENAME") == "jammy" +def is_ubuntu_2404(): + return platform.freedesktop_os_release().get("VERSION_CODENAME") == "noble" + + def setup_bash(): - if is_ubuntu_2204(): + if is_ubuntu_2204() or is_ubuntu_2404(): # clone the handy ~/.bashrc.d from Fedora bash_aliases = pathlib.Path.home() / ".bash_aliases" bash_aliases.write_text(textwrap.dedent(""" -- cgit v1.2.3