Skip to content

Commit c3cd360

Browse files
committed
Change default location for history file
1 parent 85595cd commit c3cd360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSReadLine/Cmdlets.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public PSConsoleReadlineOptions(string hostName)
139139
HistorySearchCaseSensitive = DefaultHistorySearchCaseSensitive;
140140
HistorySaveStyle = DefaultHistorySaveStyle;
141141
HistorySavePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
142-
+ @"\PSReadline\" + hostName + "_history.txt";
142+
+ @"\Microsoft\Windows\PowerShell\PSReadline\" + hostName + "_history.txt";
143143
CommandValidationHandler = null;
144144
CommandsToValidateScriptBlockArguments = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
145145
{

0 commit comments

Comments
 (0)