Tweak prun aliases

This commit is contained in:
Anthony Rose 2023-03-21 14:51:42 +00:00
parent be1b674263
commit 58d4fcbb9e

View file

@ -255,12 +255,15 @@ then
_acp_add_path "$GOPATH/bin"
fi
export _acp_podman_run='podman run --rm --interactive --tty --security-opt label=disable'
alias adoc='$_acp_podman_run --volume "$(pwd)":/documents docker.io/asciidoctor/docker-asciidoctor:latest'
alias pgo='$_acp_podman_run --volume "$(pwd)":/devel --workdir /devel docker.io/library/golang:latest'
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 prust='$_acp_podman_run --volume "$(pwd)":/devel --workdir /devel docker.io/library/rust:latest'
alias pruncerts='prun --volume /etc/pki/ca-trust:/etc/pki/ca-trust:ro --volume /etc/ssl/certs:/etc/ssl/certs:ro'
# Basic and extra prun (podman run) aliases.
alias prun='podman run --rm --interactive --tty --security-opt label=disable'
alias prunx='prun --volume "$HOME":"$HOME" --volume "$XDG_RUNTIME_DIR":"$XDG_RUNTIME_DIR" --env XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" --env XDG_SESSION_TYPE=wayland --ipc host'
# Tool-specific podman aliases.
alias pruncerts='prunx --volume /etc/pki/ca-trust:/etc/pki/ca-trust:ro --volume /etc/ssl/certs:/etc/ssl/certs:ro'
alias padoc='prun --volume "$(pwd)":/documents docker.io/asciidoctor/docker-asciidoctor:latest'
alias pgo='prun --volume "$(pwd)":/devel --workdir /devel docker.io/library/golang:latest'
alias prust='prun --volume "$(pwd)":/devel --workdir /devel docker.io/library/rust:latest'
# Set up SSH agent if it's not already running.
if command -v ssh-agent > /dev/null