3 ms·
Bracketed paste might help you. It's an option for readline so it goes in ~/.inputrc. There's a way to set these options in bashrc as well which I don't remembe
by porridgeraisin 2y ago
Bracketed paste might help you. It's an option for readline so it goes in ~/.inputrc. There's a way to set these options in bashrc as well which I don't remember.
It inserts a control sequence before and after the pasted contents that makes bash not execute all the lines. Instead it will keep them in the command line, post which you can choose to execute all of them in one go with enter or cancel with ctrl C.
- teo_zero 2y agoEverything you can do in inputrc can be done in bashrc if you prepend "bind". In this case: bind 'set enable-bracketed-paste on'