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

Configuration with shell variables. #1

Merged
merged 3 commits into from
Aug 30, 2021
Merged

Configuration with shell variables. #1

merged 3 commits into from
Aug 30, 2021

Conversation

ayosec
Copy link
Owner

@ayosec ayosec commented Aug 30, 2021

This patch changes the configuration system in the builtin to use shell variables:

  • TIMEHISTORY_FORMAT sets the default format format (when -f is not given).
  • TIMEHISTORY_LIMIT sets the maximum history size.

TIMEHISTORY_LIMIT is a dynamic variable, so it is always in sync with the value stored in the History instance.

Instead of the `-s K=V` options, configuration is now read from shell variables:

  TIMEHISTORY_FORMAT sets the default format format, if `-f` is not given.
  TIMEHISTORY_LIMIT sets the maximum history size.

TIMEHISTORY_LIMIT is a dynamic variable, so it is always in sync with the value
stored in the History instance.
@ayosec ayosec merged commit ca3a02c into main Aug 30, 2021
@ayosec ayosec deleted the vars-config branch November 29, 2021 20:13
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

Successfully merging this pull request may close these issues.

None yet

1 participant