title: bash: get list of commands starting with a given string
body: <p>Is it possible to get, using Bash, a list of commands starting with a certain string?<br>
  I would like to get what is printed hitting &lt;tab&gt; twice after typing the start of the command and, for example, store it inside a variable.</p>