mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
rename
This commit is contained in:
32
Plugins/Wox.Plugin.Shell/Settings.cs
Normal file
32
Plugins/Wox.Plugin.Shell/Settings.cs
Normal 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,
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user