[zsh] add multiple file support for the `open` function
This commit is contained in:
parent
30e517a40c
commit
c31a5515f1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue