[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
1 changed files with 1 additions and 1 deletions

View File

@ -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