19
9
I love Powershell, but coming from a Linux background there is a few things that is really bugging me. Like for example how the default auto completion works.
For example: Get-PS expands to "Get-PSBreakpoint" which is the first matching command. In bash if there is only one command matching bash will expand to the matching command. If there is several hitting tab once does nothing, double tapping tab will show a list of matching commands but not expanding. Is there a way to make Powershell behave like this?
And one other thing, if i have written one line, and moves the marker back to an earlier command (marker is where the ^ is):
"Get-PSS^ | Remove-PSSession" auto completes to "Get-PSSession^", removing all trailing commands. In bash the trailing commands would still be there unaffected. Is there a way to make Powershell not remove the trailing commands when auto completing?
A bonus would be to get CTRL+L to clear the screen. CTRL+A to go to the beginning of the line, and CTRL+E to go to the end of the line.
Luckily we have bash on windows 10 now. – byxor – 2018-02-12T11:39:32.993
I posted an answer to your question but the funny thing is that I arrived on this question because I'm looking for the exact opposite... I want PowerShell style completion in bash :) – Robert S Ciaccio – 2010-11-28T00:24:14.070
PowerShell style completion is available in bash - look for the function menu-complete – Jason Shirk – 2013-11-15T23:20:30.847