From ec677a8d746fd53f5dafde9d74e22c7dbaa4dbbe Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 17 Apr 2023 08:49:28 -0400 Subject: [PATCH] Run a command until it exits with failure --- zsh/.config/zsh/functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/.config/zsh/functions b/zsh/.config/zsh/functions index 411eae5..4ac8683 100644 --- a/zsh/.config/zsh/functions +++ b/zsh/.config/zsh/functions @@ -116,6 +116,10 @@ function test-rails { fi } +function until-fail { + while "$@"; do :; done +} + function zsh-time { for i in $(seq 1 10); do time zsh -i -c exit