diff --git a/modules/helper/init.zsh b/modules/helper/init.zsh index 9d792186..3883f7d7 100644 --- a/modules/helper/init.zsh +++ b/modules/helper/init.zsh @@ -23,9 +23,7 @@ function is-true { # Prints the first non-empty string in the arguments array. function coalesce { - for arg in $argv; do - print "$arg" - return 0 - done - return 1 + print "${${(s: :)@}[1]}" } + +