From c31a5515f181c60fdc72790e8a24f5072cbe8427 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Mon, 23 Dec 2019 11:52:49 +0200 Subject: [PATCH] [zsh] add multiple file support for the `open` function --- zsh/functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 5955fe9..c82beec 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -41,7 +41,7 @@ if ! is_macos; then else open_cmd='print >&2 "open: Platform $OSTYPE is not supported"; return 1' fi - eval "open(){$open_cmd \"\$@\";}" + eval "open(){local f; for f in \"\$@\"; do $open_cmd \"\$f\"; done;}" unset open_cmd fi