aboutsummaryrefslogtreecommitdiff
path: root/dbx-enter
blob: 7852fa906449ad22e9fa9ad392403342532c3318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-only

set -euo pipefail

c="dbx"
d="$HOME/Developer"

workdir="$(realpath "$PWD")"
if [[ "$workdir" != "$d"* ]]; then
    workdir="$d"
fi

podman start "$c" >/dev/null
exec podman exec \
    --detach-keys "" \
    --interactive \
    --tty \
    --user "$(id -u)" \
    --workdir "$workdir" \
    "$c" \
    fish --login