-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nice to have: import history at module load #9
Comments
This was my very first concern with the module, besides that love it |
Great idea. I was considering maintaining history automatically, but I can easily add this feature and add automatic saving of history (ideally shared across sessions) later. |
I pulled out the stuff from posh for persistent history found in my profile: param( Controls how much history we keep in the command log[Int]$PersistentHistoryCount = 1024, If set, we use a pasteable prompt with <# #> around the prompt info[Alias("copy","demo")][Switch]$Pasteable, Global first-run (profile or first prompt)if($MyInvocation.HistoryId -eq 1) { Import my historyImport-CSV $ProfileDir.poshhistory | Add-History |
History should now be imported when you load the module - commit 1c75b8e |
I noticed right off that my (ghy).length is greater than the scrollback buffer after loading psreadline. Would be cool if it were to grab everything in the history buffer, especially if I'm doing something outside of my session to persist these.
The text was updated successfully, but these errors were encountered: