From 2e7020ee71713a3908c4f3c98dbb206475cbf916 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Fri, 5 Sep 2025 18:32:31 -0400 Subject: [PATCH] Added example files for bash functions and aliases --- playbooks/files/all/bash/bash_aliases.example | 12 ++++++++++++ playbooks/files/all/bash/bash_functions.example | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 playbooks/files/all/bash/bash_aliases.example create mode 100644 playbooks/files/all/bash/bash_functions.example diff --git a/playbooks/files/all/bash/bash_aliases.example b/playbooks/files/all/bash/bash_aliases.example new file mode 100644 index 0000000..2607751 --- /dev/null +++ b/playbooks/files/all/bash/bash_aliases.example @@ -0,0 +1,12 @@ +#!/usr/bin/bash +# ssh aliases +alias ssh_send="scp -C" +# @NOTE consider adding aliases for scp source or destination hosts + +# flatpak aliases +alias clone="rsync -pogAXtlHrDx --stats --info=progress2" +alias flatshell="flatpak run --user --command=sh" +alias codium="flatpak run --user com.vscodium.codium" + +# podman aliases +alias docker="podman" \ No newline at end of file diff --git a/playbooks/files/all/bash/bash_functions.example b/playbooks/files/all/bash/bash_functions.example new file mode 100644 index 0000000..86a5d95 --- /dev/null +++ b/playbooks/files/all/bash/bash_functions.example @@ -0,0 +1,13 @@ +#!/usr/bin/bash +# podman bash function +conman () { + if command -v podman &> /dev/null; then + CONTAINER_MANAGER="podman" + elif command -v docker &> /dev/null; then + CONTAINER_MANAGER="docker" + else + exit 1 + fi + + $CONTAINER_MANAGER +} \ No newline at end of file