feat: bookmarks

This commit is contained in:
ange 2025-02-17 06:08:25 +00:00
parent ddd00d7844
commit 98ec0130fd
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
19 changed files with 223 additions and 90 deletions

View file

@ -1,9 +1,18 @@
#!/bin/bash -e
#!/bin/bash
declare -A aliases
aliases=(
function dkr() {
local ep="$1"; shift
(set -x
podman run --rm -it -v "$PWD:/mnt/" -w /mnt/ --entrypoint "$ep" \
"$img" "$@"
)
}
declare -A aliases=(
[arch]=docker.io/archlinux/archlinux:base
[debian]=docker.io/debian:12-slim
[flutter]=git.gmoker.com/icing/flutter:main
[kaniko]=gcr.io/kaniko-project/executor:debug
)
@ -19,5 +28,7 @@ else
fi
shift
set -x
podman run --rm -it -v "$PWD:/mnt/" -w /mnt/ "$img" "$@"
dkr bash "$@"
if [ "$?" = 127 ]; then
dkr sh "$@"
fi