-
Notifications
You must be signed in to change notification settings - Fork 612
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
Local defaults for --tty and other command line options #2994
Comments
Having somewhere to store global Lima defaults like that would be handy, beyond the env var. |
Why not just set |
That's a good idea!
What are those global Lima defaults that you want to set? Defaults for anything in |
OK, so we already have a place for defaults and we can add more defaults there. |
This is a good workaround, but I don't like to use aliases. One issue is having to manage the aliases on every user account on every machine, other is conflicts if you want to enable the feature disabled by the alias. |
You have the same issue with any other shell configuration. This is normally solved by
That is not an issue, later options override earlier options: $ type limactl
limactl is aliased to `limactl --tty=false'
$ limactl start --tty template://alpine
? Creating an instance "alpine" [Use arrows to move, type to filter]
> Proceed with the current configuration
Open an editor to review or modify the current configuration
Choose another template (docker, podman, archlinux, fedora, ...)
Exit |
It is only for the template defaults, and it is local to the LIMA_HOME (not HOME) I meant something like a Historically we didn't use shell aliases because there were "too many" shells (i.e. two) I guess that is three now, if we count the * I did create a config file for Lima GUI, but so far it doesn't have anything but "paths". https://doc.qt.io/qt-5/qsettings.html#locations-where-application-settings-are-stored |
I thought about ~/.config/lima/limactl.yaml. The advantage is separating instance configuration and command configuration. |
Description
My workflow is:
Create a lima yaml, usually for testing something, by copying another yaml and editing it. I want to keep the yaml around for creating more vms later, maybe put in in version control.
Create the vm from the yaml
I never want to edit the yaml during creation, but I forget to add --tty=0 a lot. Editing the yaml means your changes are saved only in ~/.lima/name/lima.yaml, and I like to treat anything under ~/.lima as ephemeral.
It would be useful if --tty=false was the default, but this may not be best for everyone. Having a local default will make it easy to adapt lima to different users. This option name is also not great, it should be about editing the yaml, not about using in a terminal.
Current behavior is to default to tty=true when using in a terminal:
We can change it to:
The text was updated successfully, but these errors were encountered: