2024-08-05 09:59:33 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
if [[ $# -eq 0 ]]; then
|
|
|
|
set -- "${SHELL}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
exec systemd-run \
|
|
|
|
"--property=User=$(id -un)" \
|
|
|
|
"--property=SupplementaryGroups=docker" \
|
|
|
|
"--pty" "--same-dir" "--wait" "--collect" "--service-type=exec" \
|
|
|
|
"--quiet" \
|
2024-09-12 09:44:38 +02:00
|
|
|
"--setenv=PATH" \
|
|
|
|
"--setenv=EDITOR" \
|
|
|
|
"--setenv=PAGER" \
|
2024-08-05 09:59:33 +02:00
|
|
|
"$@"
|