title: How to set a prefix to bash verbose mode
body: <p>I'm writing a script using verbose mode but I'd like to set a prefix to the command outputs (mainly to make the output look nicer).</p>
  
  <p>For example, the script:</p>
  
  <pre><code>#!/bin/bash -v
  
  pwd
  hostname
  </code></pre>
  
  <p>This will give the output:</p>
  
  <pre><code>pwd
  /home/username
  hostname
  myawesomehost
  </code></pre>
  
  <p>But I'd like the output (specifically with the <code>$</code> sign):</p>
  
  <pre><code>$ pwd
  /home/username
  $ hostname
  myawesomehost
  </code></pre>
  
  <p>Is there a way to set a prefix for the verbose output like this?</p>