You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
frizop commentedon Sep 10, 2013
This was my very first concern with the module, besides that love it
lzybkr commentedon Sep 12, 2013
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.
frizop commentedon Sep 12, 2013
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,
[Int]$global:MaximumHistoryCount = 2048,
[ConsoleColor]$global:PromptForeground = "Yellow",
[ConsoleColor]$global:ErrorForeground = "Red"
)
Global first-run (profile or first prompt)
if($MyInvocation.HistoryId -eq 1) {
$ProfileDir = Split-Path $Profile.CurrentUserAllHosts
Import my history
Import-CSV $ProfileDir.poshhistory | Add-History
}
lzybkr commentedon Sep 13, 2013
History should now be imported when you load the module - commit 1c75b8e