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.
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).