Re:Ask HN: How to effectively learn PowerShell?
by oellegaard on Sunday January 15, 2017 @12:38PM
(#13405151)
Protip: You'll find two app on Windows called Powershell. One is just called Powershell and the other is called Powershell ISE. I mistakenly picked the regular one, to later find out that Powershell ISE is epic. It's like a combination of a terminal and some kind of IDE.
[ Parent
| on HN ]
Re:Ask HN: How to effectively learn PowerShell?
by aytch on Sunday January 15, 2017 @02:44PM
(#13405948)
Use PSReadLine instead of ISE.https://github.com/lzybkr/PSReadLine
ISE has bugs that the CLI doesn't (ex: splats for hashtable arguments used to not work in ISE - I don't know if that is still true, because I gave up using ISE and have only used the CLI for the last 2-3 years).
Re:Ask HN: How to effectively learn PowerShell?
by Arnavion on Sunday January 15, 2017 @03:03PM
(#13406054)
And if you use PS 5.0 (not the default for Win 7/8/8.1 but downloadable as WMF 5.0) it has PSReadLine by default.
Re:Ask HN: How to effectively learn PowerShell?
by agumonkey on Sunday January 15, 2017 @09:15PM
(#13407826)
As an emacs user this is quite a pleasing news.
Import-Module PSReadLine
Set-PSReadlineOption -EditMode Emacs
### profit
Re:Ask HN: How to effectively learn PowerShell?
by YeGoblynQueenne on Monday January 16, 2017 @05:46AM
(#13409285)
Mnyeah, dunno. I tried the Vi mode, but right off the bat I missed the ability to hit ESC to clear the current input. So much easier than doing ^d$
I don't know about Emacs bindings, but I've tried vim bindings in all sorts of things outside vim, browsers, IDEs, other editors... somehow they never made sense outside of vim.
Re:Ask HN: How to effectively learn PowerShell?
by mondoshawan on Monday January 16, 2017 @08:05AM
(#13409705)
Awesome nugget of info! Does this work in v5?
Re:Ask HN: How to effectively learn PowerShell?
by agumonkey on Monday January 16, 2017 @10:29AM
(#13410456)
I believe so, the PSReadLine module has been included in PS since v3 IIRC
Re:Ask HN: How to effectively learn PowerShell?
by gargravarr on Monday January 16, 2017 @01:07PM
(#13411711)
Many thanks, a colleague sent me Clink for CMD, but I noticed it didn't apply to PoSh. Ths is what I needed.
Re:Ask HN: How to effectively learn PowerShell?
by nailer on Sunday January 15, 2017 @12:42PM
(#13405174)
ISE is the best for learning but doesn't have good readline support (it's not quite a normal windows console). Once you're up to speed, grab ConEmu. It's the iTerm2 of the Windows world.
Re:Ask HN: How to effectively learn PowerShell?
by aytch on Sunday January 15, 2017 @05:03PM
(#13406657)
ConEmu is pretty great (and WAY better than a standard console), but CMDer builds upon the ConEmu base and improves it, in my opinion: http://cmder.net/
Re:Ask HN: How to effectively learn PowerShell?
by YeGoblynQueenne on Monday January 16, 2017 @05:49AM
(#13409295)
>> ISE is the best for learning but doesn't have good readline support
But it has very nice tab completion with a graphical drop-down :0
Re:Ask HN: How to effectively learn PowerShell?
by toyonut on Sunday January 15, 2017 @12:55PM
(#13405261)
It either has the full powershell console in a pane depending on your view settings or you can hit f8 to run highlighted text or the line your cursor is on.
Re:Ask HN: How to effectively learn PowerShell?
by oellegaard on Sunday January 15, 2017 @12:44PM
(#13405182)
At least you have proper copy/paste in ISE :P
Re:Ask HN: How to effectively learn PowerShell?
by nailer on Sunday January 15, 2017 @12:51PM
(#13405224)
ConEmu has Unix style, highlight & right click paste. :P~
Re:Ask HN: How to effectively learn PowerShell?
by chris_wot on Sunday January 15, 2017 @01:45PM
(#13405571)
Not if you run RealVNC, it kills cut...
Re:Ask HN: How to effectively learn PowerShell?
by chime on Sunday January 15, 2017 @01:55PM
(#13405640)
Thanks for pointing this out. I thought I was going crazy when it happened to me just yesterday.
Re:Ask HN: How to effectively learn PowerShell?
by marsrover on Sunday January 15, 2017 @05:17PM
(#13406710)
If you want to take ISE to the next level, check out ISESteroids. After being spoiled by Visual Studio, it's nice to have powerful debugging capabilities.
Re:Ask HN: How to effectively learn PowerShell?
by majkinetor on Sunday January 15, 2017 @05:41PM
(#13406818)
ISESteroids simply sux. The worst money thrown yet. Its slower to start then Visual Studio Ultimate, then continues to be slow during usage, it has bunch of useless features, it does some Write-Hosts on its own (?!) and unimportant icons and is buggy. It also greets you over full screen each time which is very annoying. The only good feature is powershell compatibility check which actually stopped working for me after some time. Plus its commerical, you have to take care of licensing stuff. Its on my ignore list.