From 58d4fcbb9e7b20cfc475ac4df400cd8056e70d41 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 21 Mar 2023 14:51:42 +0000 Subject: [PATCH] Tweak prun aliases --- roles/home-cli/files/profile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index 4ca4af1..fea30ca 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -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