[zsh] add multiple file support for the open function

This commit is contained in:
Dmytro Meleshko 2019-12-23 11:52:49 +02:00
parent 30e517a40c
commit c31a5515f1

View file

@ -41,7 +41,7 @@ if ! is_macos; then
else else
open_cmd='print >&2 "open: Platform $OSTYPE is not supported"; return 1' open_cmd='print >&2 "open: Platform $OSTYPE is not supported"; return 1'
fi fi
eval "open(){$open_cmd \"\$@\";}" eval "open(){local f; for f in \"\$@\"; do $open_cmd \"\$f\"; done;}"
unset open_cmd unset open_cmd
fi fi