Add shortcut for running a command in a loop.

This commit is contained in:
2025-12-02 16:38:57 -07:00
parent b91b43b56d
commit 195c315714

View File

@@ -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: