From 1be9149af66b7324adbfff0d43287f463009b194 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 29 Aug 2016 12:41:50 +0100 Subject: [PATCH] Set `max-args` to 1 on `xargs` Otherwise it misses binaries (#4) --- zsh-nvm.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index cfab773..209e8fe 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -24,7 +24,7 @@ _zsh_nvm_install() { _zsh_nvm_global_binaries() { echo "$NVM_DIR"/v0*/bin/*(N) "$NVM_DIR"/versions/*/*/bin/*(N) | - xargs basename | + xargs -n 1 basename | sort | uniq }