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.
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
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.
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#.
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.