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

Add mackup command #1325

Merged
merged 2 commits into from
Aug 4, 2021
Merged

Add mackup command #1325

merged 2 commits into from
Aug 4, 2021

Conversation

twpayne
Copy link
Owner

@twpayne twpayne commented Aug 1, 2021

Refs #885 and lra/mackup#1733.

First steps. Not ready for merge yet.

@twpayne twpayne force-pushed the mackup branch 7 times, most recently from ff18b9a to 4104a3e Compare August 4, 2021 18:50
@twpayne twpayne merged commit 47a1b22 into master Aug 4, 2021
@twpayne twpayne deleted the mackup branch August 4, 2021 19:33
@twpayne
Copy link
Owner Author

twpayne commented Aug 4, 2021

@MurzNN this PR adds

$ chezmoi mackup add $APPLICATION

where $APPLICATION is the basename of the file that you'll find in /opt/homebrew/Cellar/mackup/0.8.32/libexec/lib/python3.9/site-packages/mackup/applications, for example curl or vscode. This assumes that you have installed mackup on your machine with brew and that your Python version is 3.9.something.

Right now this is now an undocumented command in chezmoi. It should work, but what's needed is:

  1. Agreement from the mackup developers that it's OK to use their config files in this way.
  2. Fewer assumptions about where mackup stores its config flies. Right now, this PR assumes the use of Python 3.9, but it's not a robust assumption. Ideally, the mackup developers would add a command that prints the directory name of where it stores its config files.
  3. (lower priority) Deeper integration with mackup, e.g. list and unmanage commands.

@twpayne
Copy link
Owner Author

twpayne commented Sep 12, 2021

@ecogit @drod3763 @realdimas you all 👍 'd the original issue (#885). Do you have any feedback on this implementation?

@drod3763
Copy link

I don't use mackup, I just thought the templates were a good idea.

@twpayne twpayne mentioned this pull request Dec 15, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
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.

2 participants