-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to store configuration #1695
Comments
Why store another config file? The entire config folder is stored config files. You can use bat/cmd, sh, and ps1 files. Init.bat will soon be able to take command line args and these are stored in the users conemu.xml in the config folder. What config is there to store that is not already storable in the config folder? I think we need to have user lua scripts and that is an easy 5-8 line mod to |
@daxgames No need for another config files, instead I'm asking for a unified format to store existing configuration. (Please note that i'm talking about the way configuring Cmder is or going to be designed - not how the procedure of the scripts currently work - which I'm well aware of.) To make an example, it would make much more sense to have a unified I consider having one Also, in In any event, I made this issue to ask for your and the other devs' opinion to come up with a solution to a problem I thought of, but if this doesn't seem to be an issue, well, there's no need for a solution :) What do you think? |
@DRSDavidSoft. That's my point, the capability to have user stored config that is persistent across cmder updates is already there and it is in the config folder as you propose. The only thing missing is loading user lua from config folder and I have already written that just not PRd it. Lua as far as cmder used as a part of clink and is primarily for cmd.exe customization I believe it has limited support for PowerShell but I don't think it supports bash at all. That is why I asked what config do you want to store? Also what are you doing that is not persisted across upgrades? A unified config repo seems unlikely since all the shells are very different and proprietary. |
@daxgames That's good (and looking forward to your PR) – though by not unified, I mean that each shell is currently loading its custom script. e.g. for changing the prompt color from green to cyan, I have to modify these 3 files:
It would be better to have a single So, a newbie user could easily edit that I see many parallels between platforms that Cmder supports, besides customizing prompt. That's what I meant, for example, to set the path depth limit from There are methods for bash to parse .yml, or better we can include a lua.exe binary (<50KB) in the I imagine on the first initial start-up, a copy of console.lua should be generated into So, with that said, |
@DRSDavidSoft. Don't get me wrong, I like the idea in principle. I just question the effort vs the reward, how much will it get used. I sometimes wonder how much current configuration features available to cmder users are actually used beyond the most advanced users, Ex: contributors to the project. Many users don't use all three shells, I bet many use only the default cmd.exe based shell. I don't think Lua is the right thing to use. Lua is a programming language and while that may be great you and me a normal user not so much. As far as modifying 3 files to change prompt color every time you uodate, the flaw is in editing files in the The thing is the majority of cmder users do not need or want to do this kind of config. I almost think documentation of how to do these advanced configs has a better ROI. I know how it is though, If you have to do this though just make sure everything you do is backwards compatible for those that may not need the functionality. Just my $.02 |
Thanks for your considerations, I believe you are right. For now I'll hold this until you finish your PR - to make sure it's implemented right. (Please mention this issue on your PR when you make it.) Any edits I make, I'll also make sure it's fully backwards compatible. I might make this as a separate package, like a plug-in to Cmder. (As long as it's calling executables from /config, it should be fine.) I believe if this makes modification to prompt easier for power users (and contributers), it deserves to be done. Though I think if users will be able to easily use this, it would even be used more, since some issues and forks regarding changing the prompt has already been made. Thanks! |
I'm with @daxgames here, after the Lua loader is done, we are pretty good when it comes to storing user data. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution(s). |
We need to come up with a standardized way to store Cmder configuration here.
I'm working on a branch to customize the prompt color and handle character (currently λ) from the
/config
directory, and similarly, a lot ofinit.bat
(e.g. @daxgames's recursive path enhancing) could benefit from a stored configuration file.@cmderdev/trusted-contributors - What would you vote as a suitable container for the Cmder configuration?
Keep in mind that it needs to be:
The text was updated successfully, but these errors were encountered: