aboutsummaryrefslogtreecommitdiff
path: root/workstation/user-setup.py
blob: 2b57e29a72a147904a94eb8cfec1886f7a7bef5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/python3
import pathlib
import subprocess


def _(*args):
    subprocess.run(args, check=True)

HOME = pathlib.Path.home()
BIN = HOME / ".local" / "bin"
GIT = HOME / "git"
ALEXPDP7_REPO = GIT / "alexpdp7"

if not ALEXPDP7_REPO.exists():
    _("git", "clone", "https://github.com/alexpdp7/alexpdp7.git", ALEXPDP7_REPO)

_("pipx", "install", "-e", ALEXPDP7_REPO / "scripts", "--force")
_(BIN / "setup-ubpkg")
# Latest Bitwarden CLI not compatible with EPEL Vaultwarden https://github.com/dani-garcia/vaultwarden/issues/7820
_(BIN / "install-bitwarden-cli", "2026.8.0")
_(BIN / "setup-ssh")