Live data from Hacker News

Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

news.softpedia.com

301–310 of 350 posts

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

#301
post #164

Earlier quoted context omitted.

If you're going to use CMD/PS on windows you might go whole hog and install ConEmu. Then load it up with Cygwin, and DosBox. ConEmu can even integrate stuff like Putty.

> ConEmu can even integrate stuff like Putty. If you're going to use ConEmu, just go ahead and use the straight & regular OpenSSH command-line ssh tool. Then you get all the standard niceties you can stash away for global reuse in ~/.ssh/config. I don't miss PuTTY one bit.

Ooh, could I use this to get ECDSA keys with configurable rounds of hash functions?

I might switch from putty to ConEmu with OpenSSH then. Presuming I can get ConEmu's look close enough to my putty.

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

#302
post #35

Something that irks me is how PowerShell’s default aliases take precedence over binaries in the PATH. To be able to use the GNU utils, you have to put this in your profile.ps1 : Remove-Item Alias:cat Remove-Item Alias:cp Remove-Item Alias:curl Remove-Item Alias:echo Remove-Item Alias:ls Remove-Item Alias:man Remove-Item Alias:mv Remove-Item Alias:pwd Remove-Item Alias:rm Remove-Item Alias:wget

I don't think this is a good default for posh on nix platforms but I would argue that it's a good thing on Windows. The output of PowerShell ls is an object with typed properties and methods that you can interact with in a much richer way. Not to mention user experience. Adding these aliases made moving back-and-forth between nix and Windows much less jarring for me. They also really helped drive home the difference…

I don't really het the point of powershell making everything an object. If I wanted that I'd probably be in a python REPL.

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

#303
post #83

Earlier quoted context omitted.

That is correct. Most people do not notice because the buildings in bash are almost completely equivalent to the standalone binaries.

I've only ever really noticed with 'time' and 'echo'

The time builtin is often less functional than the /usr/bin/time and does not have functionality like the -v parameter.

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

#304

Earlier quoted context omitted.

CMD + { and CMD + }

Thanks but... yuck. Any way I can remap these? Cmd- is a pretty standard way to jump to tabs (and arguably, Ctrl-tab as well).

⌃⇥ actually does work in Terminal.app. And in fact, ⌃⇥ and ⌃⇧⇥ are the official keyboard shortcuts in the menu, with ⌘{ and ⌘} being undocumented aliases. This is also how Safari works too.

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

#305

Earlier quoted context omitted.

CMD + { and CMD + }

I wonder why they chose ⌘{ and ⌘} instead of ⌘[ and ⌘]. With the later you don't need to hold down SHIFT (at least on US keyboard layout.)

Because it's the same keyboard shortcuts that Safari uses, and in Safari ⌘[ and ⌘] navigate the history stack.

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

#306

Earlier quoted context omitted.

> good Unicode support from the very beginning I once started a Chinese character flash card program in Python on Windows. The yak shaving was unbelievable. I never got a working version, but I learned a lot about code pages, and why "building a console from scratch" is not actually the right answer to "I want to be able to test a toy program I'm making before it's finished."

Tkinter would have given you a basic Unicode capable GUI without the hassles of the console.

Hmm, going back through my old .py files, I ultimately did start using Tkinter... and for some reason thought yaml was really important...

Still, would have been nice to have a program that essentially took in and put out text without learning everything about GUI elements.

I'd never written anything with a GUI before, and "I'd like to see unicode" is a really weird place to dive in.

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

#308
post #183
post #75

Earlier quoted context omitted.

That is actually pretty interesting, thanks for linking! I still dont understand how this was not "fixed" years ago, sure some config windows have fixed widths because it makes sense, but something as a terminal obviously needs the ability to grow (or shrink), especially after they introduced sticky windows and people actually used "tiling"

The idea that the console screen is an MxN matrix is pretty embedded in the API... it's not a MDA display adapter metaphor, not a Unix-style typewriter. I'm guessing they just felt they had bigger fish to fry. (Everybody I know that uses the console window a lot has always just set the window to 120x9999 or 160x9999 or whatever and forgotten about it. It's one of those things that's obviously kind of lame, but after…

Oops... it IS a MDA metaphor!

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

#310

Windows fan here. I hate PowerShell and I'd much rather have Bash built into Windows. Things I hate about PowerShell: - You can't even run your own scripts without performing the Set-ExecutionPolicy ceremony first or signing your scripts. - It's way too verbose. - It's a strange bird that next to nobody uses, so there's zero motivation to learn it. - It's not "old reliable". You can't depend on it working due to the…

I'm going to address each bullet: - Set-ExecutionPolicy can be set with a single click from the "For Developer Settings." Just scroll down and hit Apply three times and your machine has sane developer defaults (inc. ExecutionPolicy). - The verbosity means that you can "guess" PS commands. Each PS command is a set layout with an action word (e.g. Add, Clear, Get, Write, etc) and then target (e.g. Set-Alias, Set-Date,…

Guess? With naming conventions like "Get-ChildItem"?

Major functionality, probably the worst name you could come up with.

Post reply on HN