feat(chezmoi): add exclude_encrypted config (#1453)

Co-authored-by: Gideon <87426140+GideonBear@users.noreply.github.com>
This commit is contained in:
Rubin Bhandari
2025-11-11 01:57:40 +05:45
committed by GitHub
parent c5267f6087
commit 50d318641a
3 changed files with 32 additions and 1 deletions

View File

@@ -916,9 +916,17 @@ pub fn run_chezmoi_update(ctx: &ExecutionContext) -> Result<()> {
let chezmoi = require("chezmoi")?;
HOME_DIR.join(".local/share/chezmoi").require()?;
let mut cmd = ctx.execute(chezmoi);
print_separator("chezmoi");
ctx.execute(chezmoi).arg("update").status_checked()
cmd.arg("update");
if ctx.config().chezmoi_exclude_encrypted() {
cmd.arg("--exclude=encrypted");
}
cmd.status_checked()
}
pub fn run_myrepos_update(ctx: &ExecutionContext) -> Result<()> {