]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.zsh
Various Vim plugins separated on packages
[dotfiles.git] / vim / .vim / pack / stargrave / start / zshfe / plugin / zshfe.zsh
diff --git a/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.zsh b/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.zsh
new file mode 100755 (executable)
index 0000000..1afcb2a
--- /dev/null
@@ -0,0 +1,8 @@
+#!/usr/bin/env zsh
+
+set -e
+zmodload zsh/zpty
+zpty zshfe zsh
+zpty -w zshfe "print ZSHFE $*"$'\t EFHSZ\nexit\n'
+zpty -r zshfe zshfe "*exit"
+print -- $zshfe | sed -n "s/^ZSHFE \(.*\) EFHSZ/\1/p"