Timeline for How does one set a persistent default PowerShell screen buffer height?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 7, 2021 at 3:57 | vote | accept | Gregory Gan | ||
May 7, 2021 at 3:26 | answer | added | postanote | timeline score: 4 | |
May 7, 2021 at 2:15 | comment | added | Gregory Gan | @DougDeden That is not persistent, but it is interesting. | |
May 7, 2021 at 2:06 | comment | added | Gregory Gan | @DavidPostill Setting the Properties value only affects one window at a time, which I’m decently confident is intended behaviour. This has no bearing on the default value that any other PowerShell window uses, which means it does not help with answering the question. I believe the whole idea behind having default settings is to make sure we don’t have to set the value every time, though I do admit I reached that conclusion based on what I think makes sense, which may or may not match up with reality. | |
May 6, 2021 at 20:08 | comment | added | DavidPostill♦ | Try setting the same values in Properties as well as Defaults. That works for me on Windows 7. | |
May 6, 2021 at 19:59 | comment | added | Doug Deden |
Try this method and see if it is persistent: $host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(160,5000)
|
|
May 6, 2021 at 19:20 | review | First posts | |||
May 7, 2021 at 2:14 | |||||
May 6, 2021 at 19:17 | history | asked | Gregory Gan | CC BY-SA 4.0 |