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 an entire directory so re-add would include new files there in the future #2298

Open
2 of 3 tasks
Zackhardtoname opened this issue Aug 27, 2022 · 2 comments
Open
2 of 3 tasks
Labels
enhancement New feature or request

Comments

@Zackhardtoname
Copy link

Zackhardtoname commented Aug 27, 2022

What exactly are you trying to do?

See title.

What have you tried so far?

chezmoi add ~/zack_setup_env
chezmoi add ~/zack_setup_env/*
chezmoi add ~/zack_setup_env/
touch ~/zack_setup_env/test.sh
chezmoi re-add

The only thing that got added is dot_DS_Store :(

Where else have you checked for solutions?

@Zackhardtoname Zackhardtoname added the support Support request label Aug 27, 2022
@twpayne
Copy link
Owner

twpayne commented Aug 27, 2022

There's currently no way to do this.

I think the correct change for chezmoi here is to treat exact_ directories specially when re-adding (re-add currently only applies to files), but I need to think through the consequences of this.

@twpayne twpayne added enhancement New feature or request and removed support Support request labels Aug 27, 2022
@triallax
Copy link
Contributor

Is there any way to work around this limitation (e.g. with a Chezmoi script)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants