diff options
| author | Alex <alex.corcoles@veecle.io> | 2024-06-03 21:33:01 +0200 |
|---|---|---|
| committer | alexpdp7 <alex@corcoles.net> | 2024-06-03 22:03:42 +0200 |
| commit | f3cd23837609c8fecfef1e21ddc31cd885a697e4 (patch) | |
| tree | 7cb0031f807dc8e40fe25b40eda15fe07253b099 /scripts | |
| parent | d251cdbe223dc124087d446106f02052086dbb7b (diff) | |
Support Ubuntu 24.04
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/p7s/bash.py | 6 |
1 files changed, 5 insertions, 1 deletions
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(""" |
