Windows WSL Ubuntu opening PowerShell doesn't have autocomplete #175

Closed
opened 2026-01-30 21:44:39 +00:00 by claunia · 3 comments
Owner

Originally created by @J0rdyV on GitHub (Mar 2, 2018).

I configured my ubuntu terminal in ~/.bash_aliases with

alias powershell="/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe"

So that when i'm in a folder an quickly want to execute a PowerShell command, i can do so with just typing powershell, and a it opens inside the folder.

This works perfectly, commands also execute like i want, no problems there.
But i don't have autocomplete.
Also arrow up, for last commands doesn't work.
Autocomplete is enabled in ~/.bashrc and works for linux commands.

Is this issue because i'm opening it from bash?
Or can i configure this option somewhere so powershell opens in a different mode when i can use the arrow keys, autocomplete, ...

I know there is a linux powershell, but this does not have the functionality i need.

Windows build: 1709 (16299.248)
Kernel: x86_64 Linux 4.4.0-43-Microsoft
Shell: bash 4.3.48

Originally created by @J0rdyV on GitHub (Mar 2, 2018). I configured my ubuntu terminal in *~/.bash_aliases* with ``` alias powershell="/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe" ``` So that when i'm in a folder an quickly want to execute a PowerShell command, i can do so with just typing powershell, and a it opens inside the folder. This works perfectly, commands also execute like i want, no problems there. But i don't have autocomplete. Also arrow up, for last commands doesn't work. Autocomplete is enabled in *~/.bashrc* and works for linux commands. Is this issue because i'm opening it from bash? Or can i configure this option somewhere so powershell opens in a different mode when i can use the arrow keys, autocomplete, ... I know there is a linux powershell, but this does not have the functionality i need. Windows build: 1709 (16299.248) Kernel: x86_64 Linux 4.4.0-43-Microsoft Shell: bash 4.3.48
claunia added the Product-WSLArea-Interop labels 2026-01-30 21:44:39 +00:00
Author
Owner

@parkovski commented on GitHub (Mar 5, 2018):

This is due to lack of interop/Windows PTY support. It's coming, but currently not possible without workarounds like winpty.

@parkovski commented on GitHub (Mar 5, 2018): This is due to lack of interop/Windows PTY support. It's coming, but currently not possible without workarounds like winpty.
Author
Owner

@zadjii-msft commented on GitHub (Mar 6, 2018):

@parkovski is right. Interactive interop scenarios are pretty limited for the time being.

@zadjii-msft commented on GitHub (Mar 6, 2018): @parkovski is right. Interactive interop scenarios are pretty limited for the time being.
Author
Owner

@bitcrazed commented on GitHub (May 3, 2018):

Hey @J0rdyV - a few things here:

  1. You don't need to absolute-path things that are on your Windows path because we add the Windows path to your Linux path by default
  2. Windows cannot (currently) access Linux folders/files so if you start PowerShell in /… or ~/..., your PowerShell instance will start in the system folder. We're working to improve this in the future (no ETA at present).
  3. You should see better support for cursor keys and autocomplete in Win10 v1803 Spring 2018 Update & later builds.

Closing for now - please file a separate issue for each individual issue to avoid too much crossing of the streams ;)

@bitcrazed commented on GitHub (May 3, 2018): Hey @J0rdyV - a few things here: 1. You don't need to absolute-path things that are on your Windows path because we add the Windows path to your Linux path by default 1. Windows cannot (currently) access Linux folders/files so if you start PowerShell in `/…` or `~/...`, your PowerShell instance will start in the system folder. We're working to improve this in the future (no ETA at present). 1. You should see better support for cursor keys and autocomplete in Win10 v1803 Spring 2018 Update & later builds. Closing for now - please file a separate issue for each individual issue to avoid too much crossing of the streams ;)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#175