Flow.Launcher/Plugins/Flow.Launcher.Plugin.Shell/Settings.cs
Ioannis G c6a6c6bd5c
plugin/shell: add powershell core (pwsh) option
Co-authored-by: shobu13 <shobu13@hotmail.fr>
2023-06-12 16:18:23 +03:00

41 lines
983 B
C#

using System.Collections.Generic;
namespace Flow.Launcher.Plugin.Shell
{
public class Settings
{
public Shell Shell { get; set; } = Shell.Cmd;
public bool ReplaceWinR { get; set; } = false;
public bool LeaveShellOpen { get; set; }
public bool RunAsAdministrator { get; set; } = true;
public bool ShowOnlyMostUsedCMDs { get; set; }
public int ShowOnlyMostUsedCMDsNumber { get; set; }
public Dictionary<string, int> CommandHistory { get; set; } = new Dictionary<string, int>();
public void AddCmdHistory(string cmdName)
{
if (CommandHistory.ContainsKey(cmdName))
{
CommandHistory[cmdName] += 1;
}
else
{
CommandHistory.Add(cmdName, 1);
}
}
}
public enum Shell
{
Cmd = 0,
Powershell = 1,
RunCommand = 2,
Pwsh = 3,
}
}