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 $@ + +}