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

Allow .chezmoiscripts to live out of the home directory #2585

Open
Larandar opened this issue Nov 20, 2022 · 1 comment
Open

Allow .chezmoiscripts to live out of the home directory #2585

Larandar opened this issue Nov 20, 2022 · 1 comment
Labels
enhancement New feature or request v3 Planned for v3

Comments

@Larandar
Copy link

Is your feature request related to a problem? Please describe.

Scripts that don't depend on a directory are expected to be in the .chezmoiscripts folder. This folder is often hidden by editors and would ideally live outside the root dir.

Describe the solution you'd like

Currently, chezmoi supports a .chezmoiroot file to set a subdirectory as the root of the chezmoi target (cf. https://github.com/twpayne/dotfiles); similarly, it would be good to have the possibility to have .chezmoiscripts file at the same level that indicates a different directory to use.

In such a directory, any file without the prefix run_ would be ignored to facilitate the reusability of code.

Describe alternatives you've considered

  • Merging .chezmoiroot, .chezmoiversion and proposed file into a new .chezmoi.toml that could be extended in the future without creating new . files
@Larandar Larandar added the enhancement New feature or request label Nov 20, 2022
@twpayne
Copy link
Owner

twpayne commented Feb 26, 2023

Thanks for this proposal. This makes sense. I propose to address this in chezmoi v3.

@twpayne twpayne added the v3 Planned for v3 label Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v3 Planned for v3
Projects
None yet
Development

No branches or pull requests

2 participants