Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Add a config variable with engine support #332

Merged
merged 3 commits into from
Nov 14, 2021
Merged

Add a config variable with engine support #332

merged 3 commits into from
Nov 14, 2021

Conversation

sophiajt
Copy link
Contributor

This adds a new builtin variable $config. The $config variable allows users to update the config by setting this to a record with known fields.

I currently have only ported over a couple settings, but we can keep adding more.

My current config.nu:

let $config = {
  filesize_metric: $true
  table_mode: with_love
}

The $config variable follows all the scoping of normal variables and is assumed captured by blocks.

@sophiajt
Copy link
Contributor Author

Going ahead and landing. We can improve this in future updates, but probably good to porting some more code over to using it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant