title: How to "setup" screen using a bash script
body: <p>I'm trying to write a bash script to create a screen (software) session with a specific set of windows, and <code>cd</code> to specific directories on each one.</p>
  
  <p>Here is the script I have so far:</p>
  
  <pre><code>#!/bin/bash
  
  killall screen;
  screen -AmdS work;
  screen -S work bash -c "cd myDir";
  </code></pre>
  
  <p>The problem is that I can't seem to change directories on that session. After running this script, I run <code>$ screen -r</code> and the current directory is still my default directory (~/).</p>
  
  <p>(I've tried changing the <code>cd</code> command to <code>touch myFile</code> and the file is there after I run the script)</p>