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

Include directive in topgrade.toml #405

Closed
openjck opened this issue Apr 20, 2023 · 0 comments · Fixed by #421
Closed

Include directive in topgrade.toml #405

openjck opened this issue Apr 20, 2023 · 0 comments · Fixed by #421

Comments

@openjck
Copy link
Contributor

openjck commented Apr 20, 2023

I want to suggest some general feature

I want to suggest that topgrade add an include directive in its configuration file, so that configuration can be included from another named file. This feature is supported by other tools, including Bash (source), tmux (source-file), Vim (source), OpenSSH (Include), Git ([include]) and others.

I find this ability helpful when I synchronize dotfiles between computers, but want one small piece of configuration to be different on a particular computer for some reason. For example, my Git configuration file (.config/git/config) uses my personal email address, but also includes this section at the bottom:

[include]
  # Include local configurations, if any.
  path = config.local

On my work computer, the config.local file sets the email address to my work email address.

With topgrade, I would do something similar, using this ability to run certain custom commands on some machines, but not others.

I would be happy to help test this.

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 a pull request may close this issue.

1 participant