title: Executing Multiple Commands in same shell Windows
body: <p>I'm writing a pretty small package for personal use that wraps <code>os/exec</code> to make running multiple commands in the same terminal a little nicer.</p>
  
  <p>I know to run multiple commands at once on linux you can do the following after reading this <a href="https://stackoverflow.com/questions/34458625/run-multiple-exec-commands-in-the-same-shell-golang">answer</a>:</p>
  
  <pre><code>cmdSeq := "cd ~/some-awesome-directory/;git status"
  cmd := exec.Command("/bin/sh", "-c", cmdSeq)
  result, err := cmd.CombinedOutput()
  
  // etc ...
  </code></pre>
  
  <p>But <code>/bin/sh</code> is unique to Linux (and potentially Mac, I haven't tested on Mac OS). If I wanted to do a similar thing for windows users what should I use to run multiple commands together in the same shell instance?</p>
  
  <p><a href="https://github.com/mikeyscode/commander" rel="nofollow noreferrer">Repository for reference</a></p>