1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-24 05:11:08 +02:00
zsh/Completion/Zsh/Function/_zsh-mime-handler
2010-05-23 19:54:03 +00:00

9 lines
311 B
Text

#compdef zsh-mime-handler
# zsh-mime-handler -l is supposed to print out the command line
# with quoting to turn it into a full executable line. So
# we need to use shell splitting to turn it into words and
# then unquoting on those words.
words=(${(Q)${(z)"$(zsh-mime-handler -l ${words[2,-1]})"}})
_normal