Make prun commands simpler

This commit is contained in:
Anthony Rose 2023-02-16 21:52:43 +00:00
parent c759af0a89
commit 1c57185d61

View file

@ -247,8 +247,9 @@ then
_acp_add_path "$GOPATH/bin" _acp_add_path "$GOPATH/bin"
fi fi
alias adoc='podman run --rm --interactive --tty --security-opt label=disable --volume "$(pwd)":/documents docker.io/asciidoctor/docker-asciidoctor' export _acp_podman_run='podman run --rm --interactive --tty --security-opt label=disable'
alias prun='podman run --rm --interactive --tty --security-opt label=disable --volume "$HOME":"$HOME" --volume "$XDG_RUNTIME_DIR":"$XDG_RUNTIME_DIR" --env XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" --env XDG_SESSION_TYPE=wayland --ipc host' alias adoc='$_acp_podman_run --volume "$(pwd)":/documents docker.io/asciidoctor/docker-asciidoctor'
alias prun='$_acp_podman_run --volume "$HOME":"$HOME" --volume "$XDG_RUNTIME_DIR":"$XDG_RUNTIME_DIR" --env XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" --env XDG_SESSION_TYPE=wayland --ipc host'
alias pruncerts='prun --volume /etc/pki/ca-trust:/etc/pki/ca-trust:ro --volume /etc/ssl/certs:/etc/ssl/certs:ro' alias pruncerts='prun --volume /etc/pki/ca-trust:/etc/pki/ca-trust:ro --volume /etc/ssl/certs:/etc/ssl/certs:ro'
# Set up SSH agent if it's not already running. # Set up SSH agent if it's not already running.