<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.295
Windows Terminal version (if applicable):  0.3.2171.0


Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.295
Windows Terminal version (if applicable):  0.3.2171.0


Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Open remote SSH session to Linux (Ubuntu)</li>
<li>run nano</li>
<li>try to use CTRL+W to search for a string</li>
</ol>

<h1 dir="auto">Expected behavior</h1>
<p dir="auto">CTRL+W should put nano in search more</p>

<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The Linux tab closes immediately without even properly logging out of the SSH session.</p>
<p dir="auto">At Ignite, there's been some interest in a few specific scenarios on how to set up the terminal. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cinnamon-msft/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cinnamon-msft">@cinnamon-msft</a> demo-ed that you can set the "commandline" setting to a <code class="notranslate">.bat</code> script. In my demo, I was able to set it to a powershell script.</p>
<p dir="auto">It would be nice to have a blogpost or doc describing a few scenarios of how to do this and how this can be useful. Particularly, consider the following:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> connect to a pre-saved SSH session</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> set up a dev/test environment with some pre-defined variables</li>
</ul>
<p dir="auto">These docs should be pretty easy to make. Just a matter of having something to share with the community so that they can wrap their heads around how Windows Terminal profiles can expand beyond "cmd", "powershell", and "wsl distros".</p>
<p dir="auto">Feel free to add more ideas below or link resources that have done something like this :)</p>