From 195c3157141d1bde575bd8cda1386b1380b9d34c Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 2 Dec 2025 16:38:57 -0700 Subject: [PATCH] Add shortcut for running a command in a loop. --- tasks/general/acct_mgmt/users.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index 683da38..b3b4a8c 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -1106,6 +1106,15 @@ status="$?" return "$status" } + function_loop: | + function loop { + cmd="$1" + while true; do + $cmd + done; + } + alias try="loop " + - name: General | Account Management | Users | Files | Common Variable set_fact: @@ -1189,6 +1198,7 @@ {{ alias_docker_other }} {{ alias_flatpak_clean }} {{ alias_commit }} + {{ function_loop }} - name: General | Account Management | Users | Files | .bashrc blockinfile: