Last active
December 30, 2015 04:59
-
-
Save smonev/7779679 to your computer and use it in GitHub Desktop.
Persistent command line history in Windows 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Persistent command line history in Windows 7: | |
You need to have PowerShell 3 installed (http://www.microsoft.com/en-us/download/details.aspx?id=34595). | |
1. Create powershell profile file, and apply some policy (Set-ExecutionPolicy RemoteSigned). | |
http://technet.microsoft.com/en-us/library/ff461033.aspx | |
2. Copy this script and put it into the profile file form #1 | |
https://lopsa.org/content/persistent-history-powershell | |
Close and open PowerShell. You now have PоwerShell with persistent history. | |
Notes: | |
1. You CAN NOT use up/down keys to access the history. Type # and then use TAB or SHIFT + TAB to navigate history entries. | |
2. Other ways to access windows history: | |
http://www.hanselman.com/blog/MakingABetterSomewhatPrettierButDefinitelyMoreFunctionalWindowsCommandLine.aspx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment