Allow to directly connect to PWSH in Azure Cloudshell bypassing bash #6963

Open
opened 2026-01-31 00:51:42 +00:00 by claunia · 1 comment
Owner

Originally created by @artisticcheese on GitHub (Mar 18, 2020).

Description of the new feature/enhancement

Currently to launch powershell cloudshell in Windows Terminal one have to launch bash and then within bash you have to launch powershell ending up with shell running inside another shell plus additional time to perform those task on each run.

Proposed technical implementation details (optional)

Do the same what Azure portal offers where you are given a choice which shell you want when you connect to cloudhsell either bash or powershell and go directly into it.

Originally created by @artisticcheese on GitHub (Mar 18, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement Currently to launch powershell cloudshell in Windows Terminal one have to launch bash and then within bash you have to launch powershell ending up with shell running inside another shell plus additional time to perform those task on each run. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. --> Do the same what Azure portal offers where you are given a choice which shell you want when you connect to cloudhsell either bash or powershell and go directly into it.
claunia added the Issue-TaskPriority-3Product-TerminalArea-AzureShell labels 2026-01-31 00:51:43 +00:00
Author
Owner

@Don-Vito commented on GitHub (Nov 9, 2020):

I wrote a short PoC where I read the preferred shell from API but instead of opening it immediately, I allow to choose a shell, where empty selection (pressing Enter) continues with a preferred shell. See below.

However, I believe the major issue here is with UX, because this change introduces additional user input. I guess we could somehow prevent this input from appearing every time, by caching it, but this might complicate things as well (Do we cache it as a part of login session? Separately? Might it create inconsistencies).

@DHowett, @cinnamon-msft - WDYT?

Default Shell
image

Custom Shell
image

@Don-Vito commented on GitHub (Nov 9, 2020): I wrote a short PoC where I read the preferred shell from API but instead of opening it immediately, I allow to choose a shell, where empty selection (pressing Enter) continues with a preferred shell. See below. However, I believe the major issue here is with UX, because this change introduces additional user input. I guess we could somehow prevent this input from appearing every time, by caching it, but this might complicate things as well (Do we cache it as a part of login session? Separately? Might it create inconsistencies). @DHowett, @cinnamon-msft - WDYT? Default Shell ![image](https://user-images.githubusercontent.com/4639110/98547074-4b65b300-22a0-11eb-810a-b3feeae16751.png) Custom Shell ![image](https://user-images.githubusercontent.com/4639110/98547441-d9419e00-22a0-11eb-99e5-94406a368613.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6963