mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Style changes and psreadline path change
This commit is contained in:
committed by
Andrew Schwartzmeyer
parent
41c7f9e469
commit
42c0b9a5f7
@@ -190,11 +190,12 @@ namespace Microsoft.PowerShell
|
||||
|
||||
else
|
||||
{
|
||||
//While a module, history save path goes into the larger .local/share/powershell folder
|
||||
HistorySavePath = System.IO.Path.Combine(
|
||||
Environment.GetEnvironmentVariable("HOME"),
|
||||
".cache",
|
||||
"powershell",
|
||||
"PSReadLine",
|
||||
".local",
|
||||
"share",
|
||||
"powershell",
|
||||
hostName + "_history.txt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,9 +114,9 @@ namespace System.Management.Automation
|
||||
string xdgconfighome = System.Environment.GetEnvironmentVariable("XDG_CONFIG_HOME");
|
||||
string xdgdatahome = System.Environment.GetEnvironmentVariable("XDG_DATA_HOME");
|
||||
string xdgcachehome = System.Environment.GetEnvironmentVariable("XDG_CACHE_HOME");
|
||||
string xdgConfigHomeDefault = Path.Combine ( System.Environment.GetEnvironmentVariable("HOME"), ".config/powershell");
|
||||
string xdgModuleDefault = Path.Combine ( System.Environment.GetEnvironmentVariable("HOME"), ".local/share/powershell/modules");
|
||||
string xdgCacheDefault = Path.Combine (System.Environment.GetEnvironmentVariable("HOME"), ".cache/powershell");
|
||||
string xdgConfigHomeDefault = Path.Combine ( System.Environment.GetEnvironmentVariable("HOME"), ".config", "powershell");
|
||||
string xdgModuleDefault = Path.Combine ( System.Environment.GetEnvironmentVariable("HOME"), ".local", "share", "powershell", "modules");
|
||||
string xdgCacheDefault = Path.Combine (System.Environment.GetEnvironmentVariable("HOME"), ".cache", "powershell");
|
||||
|
||||
switch (dirpath){
|
||||
case Platform.XDG_Type.PROFILE:
|
||||
|
||||
Reference in New Issue
Block a user