mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 20:19:17 +08:00
33 lines
707 B
C#
33 lines
707 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Wox.Plugin.Shell
|
|
{
|
|
public class Settings
|
|
{
|
|
public Shell Shell { get; set; } = Shell.Cmd;
|
|
public bool ReplaceWinR { get; set; } = true;
|
|
public bool LeaveShellOpen { get; set; }
|
|
public Dictionary<string, int> Count = new Dictionary<string, int>();
|
|
|
|
public void AddCmdHistory(string cmdName)
|
|
{
|
|
if (Count.ContainsKey(cmdName))
|
|
{
|
|
Count[cmdName] += 1;
|
|
}
|
|
else
|
|
{
|
|
Count.Add(cmdName, 1);
|
|
}
|
|
}
|
|
}
|
|
|
|
public enum Shell
|
|
{
|
|
Cmd = 0,
|
|
Powershell = 1,
|
|
RunCommand = 2,
|
|
|
|
}
|
|
}
|