mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
拆分代码7
This commit is contained in:
19
shell/Commands/Utility/PromptCommand.cs
Normal file
19
shell/Commands/Utility/PromptCommand.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace CMLeonOS.Commands.Utility
|
||||
{
|
||||
public static class PromptCommand
|
||||
{
|
||||
public static void ChangePrompt(string args, ref string prompt)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(args))
|
||||
{
|
||||
prompt = args;
|
||||
}
|
||||
else
|
||||
{
|
||||
prompt = "/";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user