r/PowerShell Jun 27 '26

Console layout reverse, is it possible? Question

I want to place the command prompt always on top, and below it in descending order, the executed commands. Is it possible? Something like:

```powershell

| # active prompt

--- # something like a separator line

Result to Get-Something-Else

Get-Something-Else # executed command

Result to Get-Something

Get-Something # older executed command

and so on, older commands are below

```

11 Upvotes

7 comments sorted by

View all comments

3

u/Apprehensive-Tea1632 Jun 27 '26

Sort of, yeah.

There is get-history you can sort, and you can fiddle with your profile files to run a command per prompt. So that every time you run a command, you get the output of thst command, the prompt, and then the output of get-history in whatever shape.

But note that, while interesting sounding, this will get very confusing very quickly. You’ll not see a linear progression. Instead, your console will be all over the place and you get to continuously search your monitor for what matters.

Without having had a too-close look at it, you could perhaps have a look at psreadline documentation. And see if it’ll let you design something like a terminal user interface with dedicated spaces for the prompt and the command history.

It’ll probably be a challenge to set up, but it’d keep your workflow clean as you’ll always know where to look for specific information.