Skip to content

Commit

Permalink
Make powershell the default profile (#639)
Browse files Browse the repository at this point in the history
* Make powershell the default profile

Sets powershell as the default profile.

* Apply suggestions from code review

Co-Authored-By: Gabriel <gabriel@potter.fr>

* Update src/cascadia/TerminalApp/CascadiaSettings.cpp

Co-Authored-By: Gabriel <gabriel@potter.fr>

* Change profile order
  • Loading branch information
matthew4850 authored and miniksa committed May 10, 2019
1 parent 660d31a commit 5c70703
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/cascadia/TerminalApp/CascadiaSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,13 @@ void CascadiaSettings::_CreateDefaultSchemes()
// - <none>
void CascadiaSettings::_CreateDefaultProfiles()
{
Profile defaultProfile{};
defaultProfile.SetFontFace(L"Consolas");
defaultProfile.SetCommandline(L"cmd.exe");
defaultProfile.SetColorScheme({ L"Campbell" });
defaultProfile.SetAcrylicOpacity(0.75);
defaultProfile.SetUseAcrylic(true);
defaultProfile.SetName(L"cmd");

_globals.SetDefaultProfile(defaultProfile.GetGuid());
Profile cmdProfile{};
cmdProfile.SetFontFace(L"Consolas");
cmdProfile.SetCommandline(L"cmd.exe");
cmdProfile.SetColorScheme({ L"Campbell" });
cmdProfile.SetAcrylicOpacity(0.75);
cmdProfile.SetUseAcrylic(true);
cmdProfile.SetName(L"cmd");

Profile powershellProfile{};
// If the user has installed PowerShell Core, we add PowerShell Core as a default.
Expand All @@ -150,8 +148,10 @@ void CascadiaSettings::_CreateDefaultProfiles()
powershellProfile.SetUseAcrylic(false);
powershellProfile.SetName(L"PowerShell");

_profiles.emplace_back(defaultProfile);
_profiles.emplace_back(powershellProfile);
_profiles.emplace_back(cmdProfile);

_globals.SetDefaultProfile(powershellProfile.GetGuid());
}

// Method Description:
Expand Down

0 comments on commit 5c70703

Please sign in to comment.