kutsan / zsh-system-clipboard

System clipboard key bindings for Zsh Line Editor with vi mode. It is similar to what `set clipboard=unnamed` does for vim.
GNU General Public License v3.0
140 stars 16 forks source link

Use array instead of alias for wrappers of executables #26

Closed laggardkernel closed 5 years ago

laggardkernel commented 5 years ago

This could make the plugin compatible with plugin manager Zplugin. And solves the issue #25.

laggardkernel commented 5 years ago

It turns out there's another simple solution of adding setopt localoptions ALIASES at the top of the source file. Choose whichever solution you like.

doronbehar commented 5 years ago

Wow thanks a lot! Thanks to you, I've learned something new - having a command with arguments set in a variable and executing it without eval. I think this solution is superior because I'm not sure as for the consequences of setopt localoptions so I merging this and closing #27 .