I’ve been trying to switch over to PowerShell from my old favorite 4NT. It’s missing a lot of niceties that 4NT has been adding over the last 20 years (I’m an old 4DOS user).
For example, in 4NT if you type a few letters then hit up/down, then the history list is filtered by what you typed. Page up/down does a popup with all matches and you can cursor through them. All in the console window space, no GUI. This is a big time-saver that I miss. There are many other things like this missing from powershell.exe.
Are there any alternatives to powershell.exe that perhaps have features like this, that really take advantage of the console environment? I realize there are a lot of GUI-based tools that embed PowerShell as a pane, but I’m really interested in a cmd.exe/4nt.exe replacement that stays as a 100% console application (except for maybe an options dialog or whatever).
Joshua already mentioned F7. You can also do partial history matches in Powershell.exe by typing some of the command and pressing F8 – repeat F8 to cycle through matches (see about_history). There are also a few more line editing features than folks typically know about. These are documented in the about_line_editing help topic. Still, line editing in the PowerShell console host leaves something to be desired. FWIW all of the other hosts I’m aware of are GUI based.
BTW I was a 4NT user for years (as well as Korn shell user). Even with a few missing amenities found in 4NT, I find PowerShell a much more capable shell and, as a developer, all the “language” bits are pretty easy to adapt to and use. I never really liked the Korn shell
if / fiandcase / esacstatements – just rubbed my sense of aethestics the wrong way. 🙂 Plus in PowerShell you can do cool stuff with your history like: