mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Use ~/.powershell for ConsoleHost profile on Linux
This commit is contained in:
1 parent
8af7d5f344
commit
2e71a090e7
1 file changed
+9
-2
@@ -170,8 +170,15 @@ namespace Microsoft.PowerShell
|
||||
{
|
||||
try
|
||||
{
|
||||
var profileDir = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) +
|
||||
@"\Microsoft\Windows\PowerShell";
|
||||
string profileDir;
|
||||
if (Platform.IsWindows)
|
||||
{
|
||||
profileDir = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) +
|
||||
@"\Microsoft\Windows\PowerShell";
|
||||
} else
|
||||
{
|
||||
profileDir = System.IO.Path.Combine(Environment.GetEnvironmentVariable("HOME"), ".powershell");
|
||||
}
|
||||
|
||||
if (!Directory.Exists(profileDir))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user