mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] add multiple file support for the open
function
This commit is contained in:
parent
30e517a40c
commit
c31a5515f1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue