This commit is contained in:
bao-qian
2016-05-19 23:34:51 +01:00
parent 97f0516630
commit 963f57868d
13 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
using System.Collections.Generic;
namespace Wox.Plugin.CMD
{
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,
}
}