From 78d7c225cdb89837277d71edd7267cfce938b1d3 Mon Sep 17 00:00:00 2001 From: Gerard Braad Date: Tue, 14 Jan 2025 22:13:20 +0800 Subject: [PATCH] systemctl helper for system containers --- zsh/.zshrc.d/sysctl.zsh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 zsh/.zshrc.d/sysctl.zsh diff --git a/zsh/.zshrc.d/sysctl.zsh b/zsh/.zshrc.d/sysctl.zsh new file mode 100755 index 0000000..e6d730a --- /dev/null +++ b/zsh/.zshrc.d/sysctl.zsh @@ -0,0 +1,14 @@ +#!/bin/zsh + +podsysctl() { + + if [ $# -lt 2 ]; then + echo "Usage: podsysctl [args ...]" + return 1 + fi + + name=$1 + shift 1 + podman exec -it ${name} systemctl $@ + +}