12 Commits
Author SHA1 Message Date
Dongbo Wang 8485855368 Make PSReadLine script hidden from debugger (#3629) 2023-03-21 12:58:14 -07:00
Dongbo Wang f5a7ebda97 Update the use of the prediction interface to adapt to the breaking changes introduced in PowerShell 7.2.0-preview.6 (#2524) 2021-06-01 10:32:44 -07:00
Jason Shirk 46d232c22a s/PSReadline/PSReadLine/g
I was terribly inconsistent.

This is a breaking change, though unlikely to cause troubles.
The apis are mostly used in PowerShell scripts which is not
case sensitive.
The cmdlet name change is also mostly safe.

At any rate, this is version 2.0 and breaking changes should be OK.
2017-11-25 21:59:55 -08:00
Jason Shirk (POWERSHELL) dc36a49ce9 Move one-time initialization out of psm1 2015-06-18 20:01:49 -07:00
Jason Shirk (POWERSHELL) c986e0eae5 Rename namespace PSConsoleUtilities to Microsoft.PowerShell 2015-06-18 15:32:20 -07:00
jason@truewheels.net d3bf9ea2f3 Remove call to SetOptions which was unnecessary
Fixes #206
2015-02-18 09:02:09 -08:00
jason@truewheels.net 8773a18f39 Honor $MaximumHistoryCount
This history count was being ignored, and the default in
PSReadline was 1024 instead of 4096 that PowerShell defaults
to.

The fix is to up the default, and safely set MaximumHistoryCount
in PSReadline based on the variable when initializing the first
time PSReadlne is called.

Fixes #135
2015-01-22 19:27:30 -08:00
jason@truewheels.net 58aaad34d0 Make PowerShell ExecutionContext available to C# 2014-09-08 09:27:31 -07:00
jason@truewheels.net 30a96d236a Auto-save history
Added options to save history automatically - either at exit or incrementally so that history can be shared across sessions.
Default is current to save incrementally.
Also added an option to not save history - useful for those importing history in their profile.
2014-06-11 09:01:28 -07:00
jason@truewheels.net f2bdf8f44e Fix #99 - completion in remote sessions
When powershell has entered a remote session via Enter-PSSession,
completion was completing against the local session.

The fix is to use the remote runspace when calling the completion
api.  The remote runspace isn't exactly exposed in a clean way
from the host, so the fix is mixed between a bit of PowerShell
and C#.
2014-04-04 13:02:25 -07:00
Jason Shirk 1c75b8e4d5 Read PowerShell history into PSReadline on import
Added a public api to add command lines to PSReadline history.
Use this api when the module is loaded so people that
persist their history can recall those command lines without
any additional changes to their profile.
2013-09-12 22:41:34 -07:00
Jason Shirk 2d5b7ce50f Make this more of a real module. 2013-07-14 00:25:29 -07:00