Live data from Hacker News

Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

news.softpedia.com

121–130 of 350 posts

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#121
post #114

Earlier quoted context omitted.

There is auto-complete support. I just tested it (not a powershell user myself), and it seems pretty intelligent. For example, if you type dir | sort it suggests Attributes, BaseName, CreationTime, .... All properties of file objects (which is what dir returns). Also there is PowerShell ISE, which is a IDE for powershell, but I haven't really tried it yet.

That's not what I mean by autocomplete. What I mean is more like Visual Studio's intellisense, ie a drop down that lets you know what are all the options from there. You can type DIR , that won't tell you that you can apply the parameters "/p" or "/w" nor what these parameters mean. ISE does a slightly better job but is based on a static specs, rather than the current state of the system. So it won't list the VM name…

The ise can do that if you've got the object at the time you're writing like that, it can't run a command for you as your typing it.

You'll never get a drop down list in the host terminal windows has it doesn't have a GUI layer like that. Wrap it in a electron app and make one.

you can type `dir -` and cycle through the options. type `get-help dir` to see what they do or install posh-git and use `dir -` to get a menu of options to choose. I didn't know about -?

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#124
post #114

Earlier quoted context omitted.

There is auto-complete support. I just tested it (not a powershell user myself), and it seems pretty intelligent. For example, if you type dir | sort it suggests Attributes, BaseName, CreationTime, .... All properties of file objects (which is what dir returns). Also there is PowerShell ISE, which is a IDE for powershell, but I haven't really tried it yet.

That's not what I mean by autocomplete. What I mean is more like Visual Studio's intellisense, ie a drop down that lets you know what are all the options from there. You can type DIR , that won't tell you that you can apply the parameters "/p" or "/w" nor what these parameters mean. ISE does a slightly better job but is based on a static specs, rather than the current state of the system. So it won't list the VM name…

That's exactly how it works!

You can press ctrl+space and it pops out a list of options to choose from, then you move with the arrow keys. It works for parameters and values (if there's a set to choose from):

I've taken a screenshot to illustrate: http://i.imgur.com/d7MVYma.png

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#125
post #27

Btw did anyone noticed that in windows 10 you can resize cmd.exe to more than 80 characters width! When I first saw it I almost cried.

Drag-resize (affecting buffer, as well) is nice, finally. And you can change opacity in properties, making your window transparent.

What I really like though: you can now use Shift + arrow keys to select text and C-c/C-p to copy/paste.

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#126
post #114

Earlier quoted context omitted.

There is auto-complete support. I just tested it (not a powershell user myself), and it seems pretty intelligent. For example, if you type dir | sort it suggests Attributes, BaseName, CreationTime, .... All properties of file objects (which is what dir returns). Also there is PowerShell ISE, which is a IDE for powershell, but I haven't really tried it yet.

That's not what I mean by autocomplete. What I mean is more like Visual Studio's intellisense, ie a drop down that lets you know what are all the options from there. You can type DIR , that won't tell you that you can apply the parameters "/p" or "/w" nor what these parameters mean. ISE does a slightly better job but is based on a static specs, rather than the current state of the system. So it won't list the VM name…

If you type: dir - PowerShell will list all available parameters below, and allow you to tab through them.

The tab completion is not static either. If you type: ps , it will tab through all the current processes.

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#127
post #16

Hopefully one day Bash will be the default Windows CLI.

Path of the course perhaps. After 30+ years of fighting a what was always a "rear guard action" against the prevailing dominant Unix customs and methods Nadella has switched Microsoft and Windows into a full-on conformist mode by removing the immediate -> monetization of the OS and thus the need to be "different".

It would not surprise me in a few years to come, to find even sooner than expected that "Windows" had become another variant of Unix in effect if not entirely in fact.

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#128
post #66

Earlier quoted context omitted.

Hey, I'm still on Windows desktop after having tried Linux desktop more times than I can count. But to claim that bash (or most other shells) are only preferable to cmd and powershell if you're a linux zealot is what is truly laughable. If you have ever worked with both there would be no question.

I've used various shells on UNIXes and powershell and they're both about the same to me. Powershell has clunkier syntax but has more features. What exactly about bash would you say makes it superior?

I responded to the other comment as well, but:

In essence, the speed when working in it (compared to powershell). While powershell does have more features, at that point I'm just more likely to use python or similar for portability.

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#129

Weird. I have 14971 installed and when I type CMD in the "ask me anything" box or in the alt-r box I get good old CMD shell. Is this a config thing ?

They're not removing cmd the console host. If you shift-right-click a folder the context item is powershell now instead of command prompt.

Who does that?

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#130

Just another reason to stay away from Windows as a platform. Windows 10 is a moving target if you are trying to work with it.

If you're not a fan of change, I feel like software development probably isn't the right career choice.

I'm not a fan of BAD change.
Post reply on HN