mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
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. |
||
|---|---|---|
| .. | ||
| README.md | ||
| safe-paste.plugin.zsh | ||
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)