return platform.freedesktop_os_release().get("VERSION_CODENAME") == "noble"
+def is_debian_bookworm():
+ return platform.freedesktop_os_release().get("VERSION_CODENAME") == "bookworm"
+
+
+def is_debian_based():
+ return is_ubuntu_2204() or is_ubuntu_2404() or is_debian_bookworm()
+
+
def setup_bash():
- if is_ubuntu_2204() or is_ubuntu_2404():
+ if is_debian_based():
# clone the handy ~/.bashrc.d from Fedora
bash_aliases = pathlib.Path.home() / ".bash_aliases"
bash_aliases.write_text(textwrap.dedent("""