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
149 stars 16 forks source link

Conflicts with oh-my-zsh? #49

Closed Mo-tmd closed 1 year ago

Mo-tmd commented 1 year ago

I am using oh-my-zsh. I manually source zsh-system-clipboard.sh at the end of .zshrc. I am getting parser error near 'done' line 270. This doesn't happen when I don't use oh-my-zsh

doronbehar commented 1 year ago

Could you give more details about the error? Perhaps also add this:

set -x

Right before oh-my-zsh loads plugins?

Mo-tmd commented 1 year ago

Thanks for the reply

Seems to work when I let oh-my-zsh source it for me I assumed I need to source it myself since installations says it needs to be sourced after keybindings

doronbehar commented 1 year ago

If you think the README could be improved for oh-my-zsh installations, please share with us.

Mo-tmd commented 1 year ago

Perhaps just a note to add it to plugin section if using oh-my-zsh instead of sourcing it

doronbehar commented 1 year ago

If you could document in the README how does it work for you now - what line did you add to your .zshrc or whatever, it'd be great.