ohmyzsh/plugins/safe-paste
Adam Katz 0dfd528f6e
Support version 5.10
Just taking the first three characters of $ZSH_VERSION would result in 5.10 becoming 5.1 and then failing this check. I've updated your logic to strip off the second dot and anything that follows it, thus ensuring all of these work: 5.10 5.10.1 5.10.1.2.3 5.100.
2024-07-18 17:52:54 -04:00
..
README.md safe-paste: add README (#8292) 2019-10-20 19:19:58 +02:00
safe-paste.plugin.zsh Support version 5.10 2024-07-18 17:52:54 -04:00

safe-paste

Preventing any code from actually running while pasting, so you have a chance to review what was actually pasted before running it.

To use it, add safe-paste to the plugins array in your zshrc file:

plugins=(... safe-paste)