diff options
| author | Alex <alex.corcoles@veecle.io> | 2024-06-05 17:39:32 +0200 |
|---|---|---|
| committer | alexpdp7 <alex@corcoles.net> | 2024-06-05 17:43:20 +0200 |
| commit | 41318c1481016df8cd3c31763d351a0745ee2f07 (patch) | |
| tree | 4affdbcca08d4789952e4141fe06b48188b26764 /scripts | |
| parent | f3cd23837609c8fecfef1e21ddc31cd885a697e4 (diff) | |
Support Debian
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/p7s/bash.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/p7s/bash.py b/scripts/p7s/bash.py index 22271dee..e703370c 100644 --- a/scripts/p7s/bash.py +++ b/scripts/p7s/bash.py @@ -11,8 +11,16 @@ def is_ubuntu_2404(): 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(""" |
