Run a command until it exits with failure

This commit is contained in:
Andrew Tomaka 2023-04-17 08:49:28 -04:00
parent b0ddcb9f55
commit ec677a8d74
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -116,6 +116,10 @@ function test-rails {
fi fi
} }
function until-fail {
while "$@"; do :; done
}
function zsh-time { function zsh-time {
for i in $(seq 1 10); do for i in $(seq 1 10); do
time zsh -i -c exit time zsh -i -c exit