title: save terminal command to file that runs command in terminal when opened
body: <p>I have a series of commands that I run in terminal and I am wondering how I can store those commands in a file and of what file type so that on open of that file, in terminal, the commands run?</p>
  
  <p>But the commands require two sources of input that I would manually type in when running the command.</p>
  
  <p>Is there a way on file open, it can ask me for these two inputs and then insert them into the command and then run the command?</p>
  
  <p>the commands inside the file, if needed to help me, are:</p>
  
  <pre><code>$ cd scripts/x
  $ python x.py -i input -o output
  </code></pre>
  
  <p>So on file open I need it to first change the dir to scripts/x, then ask me for the value of input, then the value of output, and then run the second command.</p>
  
  <p>How can I do this?</p>