title: VSCode terminal task not using zsh profile
body: <p>I'm trying to run a task on window load in VSCode where a terminal opens and <code>nvm use &amp;&amp; yarn dev</code> is run by default. However, running this shell tasks seems to not load my zsh profile.</p>
  <p>The output I get from running my task is:</p>
  <pre><code>The terminal process &quot;zsh '-c', 'nvm use &amp;&amp; yarn dev'&quot; terminated with exit code: 127.
  
  Terminal will be reused by tasks, press any key to close it.
  </code></pre>
  <p>But if I then manually start a new terminal and run the same command (ie: by pressing plus, opening a new integrated terminal), it will work as intended.</p>
  <p>Suspecting that VSCode isn't loading my profile for some reason, I tried adding the following to my task, it resulted in the error <code>/bin/zsh: can't open input file: nvm use &amp;&amp; yarn dev The terminal process &quot;zsh '-l', 'nvm use &amp;&amp; yarn dev'&quot; terminated with exit code: 127.</code>.</p>
  <pre class="lang-json prettyprint-override"><code>// in dev task
  &quot;options&quot;: {
    &quot;shell&quot;: {
      &quot;executable&quot;: &quot;zsh&quot;,
      &quot;args&quot;: [&quot;-l&quot;]
    }
  },
  </code></pre>
  <h3>.vscode/tasks.json</h3>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;version&quot;: &quot;2.0.0&quot;,
      &quot;presentation&quot;: {
        &quot;echo&quot;: false,
        &quot;reveal&quot;: &quot;always&quot;,
        &quot;focus&quot;: false,
        &quot;panel&quot;: &quot;dedicated&quot;,
        &quot;showReuseMessage&quot;: true
      },
      &quot;tasks&quot;: [
        {
          &quot;label&quot;: &quot;Create terminals&quot;,
          &quot;dependsOn&quot;: [
            &quot;Dev&quot;,
          ],
          // Mark as the default build task so cmd/ctrl+shift+b will create them
          &quot;group&quot;: {
            &quot;kind&quot;: &quot;build&quot;,
            &quot;isDefault&quot;: true
          },
          // Try start the task on folder open
          &quot;runOptions&quot;: {
            &quot;runOn&quot;: &quot;folderOpen&quot;
          }
        },
        {
          &quot;label&quot;: &quot;Dev&quot;,
          &quot;type&quot;: &quot;shell&quot;,
          &quot;command&quot;: 
            [&quot;nvm use &amp;&amp; yarn dev&quot;],
          &quot;isBackground&quot;: true,
          &quot;problemMatcher&quot;: [],
          &quot;presentation&quot;: {
            &quot;group&quot;: &quot;dev-group&quot;
          }
        },
      ]
    }
  </code></pre>