Search

Enable command history between sessions by nev42l8

Active

15
2
Sign in
to vote
Type: Suggestion
ID: 534286
Opened: 2/17/2010 10:45:36 AM
Access Restriction: Public
1
Workaround(s)
Enable the ability to access command history from previous powershell sessions. This would be similar to the functionality of any UNIX shell in that command history is persistant between shell sessions and is not lost on log out. Typically history is limited by the HISTSIZE env param with a default value of 500.
Details (expand)
How often does this happen?
Always Happens
Have you seen this problem before in this product?
Yes, this happens in all previous versions
Reproduction Steps
Open powershell, execute some commands then exit. Reopen powershell and command history is gone.
Expected Results
Command history is still available.
File Attachments
0 attachments
Sign in to post a comment.
Posted by MotoWilliams on 10/29/2011 at 12:42 PM
It is interesting that the work around listed is from 2006 - that is also the link that I found when searching and also the one provided by @jongalloway in response to my question on this topic. Are customers not asking for this?
Sign in to post a workaround.
Posted by brima on 2/17/2010 at 11:50 AM
here is WorARound:
http://blogs.msdn.com/powershell/archive/2006/07/01/perserving-command-history-across-sessions.aspx