Re:Look before you paste from a website to terminal
by M4v3R on Thursday January 26, 2017 @08:04AM
(#13490969)
Not sure if this is iTerm2 or zsh, but I have to confirm the code I am pasting by pressing enter, which gives me an opportunity to review it first. I like this feature a lot.
[ Parent
| on HN ]
Re:Look before you paste from a website to terminal
by vitohuang on Thursday January 26, 2017 @08:06AM
(#13490986)
That's a feature of iTerm2, it try to warn you about convert characters etc.
Re:Look before you paste from a website to terminal
by d0mine on Friday January 27, 2017 @09:28AM
(#13499950)
There is safe-paste plugin for oh-my-zsh and you can enable the bracketed paste mode in Bash too by adding set enable-bracketed-paste on to your ~/.inputrc. https://cirw.in/blog/bracketed-paste
Re:Look before you paste from a website to terminal
by TallGuyShort on Thursday January 26, 2017 @10:27AM
(#13492077)
Others have said it's a feature of iTerm2 (which I don't know about), but it's also a feature of zsh. I use KTerm and it definitely didn't do this with bash, but it does it with zsh.
Re:Look before you paste from a website to terminal
by mdrzn on Thursday January 26, 2017 @09:12AM
(#13491440)
Not always, sometimes when I copy something and paste it with Ctrl+V (insted of Ctrl+Shift+V) it still get pasted+entered.