If you bother to compose half a page on a software problem, might as well provide a solution, no?<p><pre><code>  runCb(){ cb; echo -e &#x27;\n\nGo on? (y&#x2F;n)&#x27;; read -sn 1 ans; if [ &quot;$ans&quot; = y ]; then eval &quot;`cb`&quot;; else true; fi; } #cb should output the contents of your clipboard
</code></pre>
Or another option would be to switch your terminal to editing mode (v in the normal mode of `set -o vi`), paste it there, and do `:wq` to run it.