Merge sorin-ionescu/prezto/pull/1241
This commit is contained in:
commit
9fc504628e
1 changed files with 3 additions and 5 deletions
|
@ -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]}"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue