diff options
| author | alex <alex@pdp7.net> | 2023-10-18 12:31:36 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-10-18 12:31:36 +0200 |
| commit | d7437aae5d15f107fdc52dc33f23908449a602c5 (patch) | |
| tree | cfc63e08db6f0c77d24d92b37942d82e04853404 /scripts/p7s/distrobox.py | |
| parent | 1b1a084928dc9a0eae1e9013c25f7deb59be8767 (diff) | |
Add distrobox shortcuts
Diffstat (limited to 'scripts/p7s/distrobox.py')
| -rw-r--r-- | scripts/p7s/distrobox.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/p7s/distrobox.py b/scripts/p7s/distrobox.py new file mode 100644 index 00000000..45e11a6f --- /dev/null +++ b/scripts/p7s/distrobox.py @@ -0,0 +1,10 @@ +import os +import subprocess + + +def create(): + subprocess.run(["distrobox", "create", "-i", "quay.io/alexpdp7/workstation:latest"], check=True) + + +def enter(): + os.execvp("distrobox", ["distrobox", "enter", "workstation-latest"]) |
