Created
February 14, 2017 17:54
-
-
Save bleroy/b23cfea3a0d28c955240227332d66827 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string[] history = new string[] { "ls -a", "dotnet run", "git init" }; | |
ReadLine.AddHistory(history); | |
ReadLine.AutoCompletionHandler = (t, s) => | |
{ | |
if (t.StartsWith("git")) | |
return new string[] { "init", "clone", "pull", "push" }; | |
else | |
return null; | |
}; | |
string input = ReadLine.Read("(prompt)> "); | |
Console.Write(input); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment