3 ms·
Use PSReadLine instead of ISE.https://github.com/lzybkr/PSReadLine https://github.com/lzybkr/PSReadLine ISE has bugs that the CLI doesn't (ex: splats for hasht
by aytch 10y ago
Use PSReadLine instead of ISE.https://github.com/lzybkr/PSReadLine 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).
- Arnavion 10y agoAnd 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.
- agumonkey 10y agoAs an emacs user this is quite a pleasing news. Import-Module PSReadLine Set-PSReadlineOption -EditMode Emacs ### profit
- YeGoblynQueenne 10y agoMnyeah, 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.
- mondoshawan 10y agoAwesome nugget of info! Does this work in v5?
- agumonkey 10y agoI believe so, the PSReadLine module has been included in PS since v3 IIRC
- gargravarr 10y agoMany thanks, a colleague sent me Clink for CMD, but I noticed it didn't apply to PoSh. Ths is what I needed.