Skip to content
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

Config-based prelude #55

Open
sharkdp opened this issue Feb 13, 2023 · 0 comments
Open

Config-based prelude #55

sharkdp opened this issue Feb 13, 2023 · 0 comments

Comments

@sharkdp
Copy link
Owner

sharkdp commented Feb 13, 2023

It would be great if the prelude could not be changed but configured by the user. For example: whether or not they want US customary units. Or whether or not they want short versions of units (like m for meter, which clashes with often used variable names.. such as m for mass).

Something like:

config

[prelude]
short_unit_aliases = false

prelude:

if config_setting("prelude.short_unit_aliases") {
  unit m = meter
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant