Skip to content

Write History in Powershell ISE #3619

@nyukers

Description

@nyukers

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

PSReadLine doesn't write history of PS commands in PowerShell ISE.

Screenshot

N/A

Environment data

PS Version: 5.1.19041.2364
PS HostName: Windows PowerShell ISE Host
PSReadLine Version: 2.2.6
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 120
BufferHeight: 9001

Steps to reproduce

Get-PSReadlineOption | select HistoryNoDuplicates, MaximumHistoryCount, HistorySearchCursorMovesToEnd, HistorySearchCaseSensitive, HistorySavePath, HistorySaveStyle

HistoryNoDuplicates : True
MaximumHistoryCount : 4096
HistorySearchCursorMovesToEnd : False
HistorySearchCaseSensitive : False
HistorySavePath : C:\Users\User01\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\Windows PowerShell ISE Host_history.txt
HistorySaveStyle : SaveIncrementally

dir

Expected behavior

File Windows PowerShell ISE Host_history.txt is exists.

Actual behavior

File Windows PowerShell ISE Host_history.txt doesn't exist or empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions