How hard would it be to code in something similar to VINSTALL, where you type a command and a series of prompts come up and you set misc. variables (in my case)?
For example, I'd type ZTEST there would be an echo that pops up "What would you like to set X too?" and the alias to set that X variable would already be in my command bar.
Just curious, Thanks!
0
Comments
Then in all of the aliases, you want a secondary part to each of them that is like...
if zinstall == true then
<whatever>
end
For the command line thing, you want something like this:
tempTimer(0.1, [echo("\n Whatever has now been set... What would you like to do for <next alias>")]])
tempTimer(1, [[clearCmdLine()]])
tempTimer(1.5, [[appendCmdLine("zalias whatever ")]])
Then you can put what you want at the end of that 'zalias whatever' ... Then you'd put one of the aforementioned 'if zinstall == true' in that next alias, and go until necessary. Then on the final alias, you'd set zinstall to false, if it's currently true.Have a table set up with all of the variable names and their (default) values in it:
Then have an alias to update them *not tested, probably got errors:
You could add links to the variable names to click them to autopopulate the command line, etc. You'll probably want some kind of mechanism to save the contents of the table to an external file and automatically re-import them when you log in so they persist through sessions, etc.