[Fix] `ls-remote`: fix issues in zsh when using a mirror with a ton of entries
[Fix] `ls-remote`: fix issues in zsh when using a mirror with a ton of entries

Fixes #1813

ljharb/nvm,PeterDaveHelloKitchen/nvm,evocateur/nvm,creationix/nvm,ljharb/nvm,PeterDaveHello/nvm,creationix/nvm,evocateur/nvm,edwmurph/nvm,PeterDaveHello/nvm,edwmurph/nvm,PeterDaveHelloKitchen/nvm