twpayne / chezmoi

Manage your dotfiles across multiple diverse machines, securely.
https://www.chezmoi.io/
MIT License
12.88k stars 478 forks source link

Unable to disable status R for scripts using status.exclude in chezmoi.json #1916

Closed tnek213 closed 2 years ago

tnek213 commented 2 years ago

Describe the bug

Unable to disable status R for scripts using status.exclude in chezmoi.json. But diff.exclude works and hides the diff (so it seems my config is in the right place, and also my paths?)

To reproduce

My conifg:

❯ cat ~/.config/chezmoi/chezmoi.json
{
  "data": {
    "hw": {
      "gfxdriver": "i915"
    },
    "screen": {
      "width": "1920",
      "height": "1080"
    },
    "network": {
      "wireless": "wlp0s20f3"
    },
    "polybar": {
      "wintitlelen": "50"
    },
    "alacritty": {
      "fontsize": "9.0"
    }
  },
  "diff": {
    "exclude": ["scripts"]
  },
  "status": {
    "exclude": ["scripts"]
  }
}

Expected behavior

Not listing run scripts as R when doing chezmoi status.

Output of command with the --verbose flag

Same behavior.

Output of chezmoi doctor

```console ❯ chezmoi doctor RESULT CHECK MESSAGE warning version v2.12.0, built at 2022-02-15T11:45:02Z ok os-arch linux/amd64 (Arch Linux) ok uname Linux klll 5.16.10-arch1-1 #1 SMP PREEMPT Wed, 16 Feb 2022 19:35:18 +0000 x86_64 GNU/Linux ok go-version go1.17.7 (gc) ok executable /usr/bin/chezmoi ok config-file ~/.config/chezmoi/chezmoi.json ok source-dir ~/.local/share/chezmoi is a directory ok suspicious-entries no suspicious entries ok working-tree ~/.local/share/chezmoi is a directory ok dest-dir ~ is a directory ok shell found /bin/bash ok edit-command found /usr/bin/nano ok umask 022 ok git-command found /usr/bin/git, version 2.35.1 ok merge-command found /usr/bin/vimdiff info age-command age not found in $PATH ok gpg-command found /usr/bin/gpg, version 2.2.32 info pinentry-command not set info 1password-command op not found in $PATH ok bitwarden-command found ~/.nvm/versions/node/v12.22.10/bin/bw, version 1.21.1 info gopass-command gopass not found in $PATH info keepassxc-command keepassxc-cli not found in $PATH info keepassxc-db not set info lastpass-command lpass not found in $PATH info pass-command pass not found in $PATH info vault-command vault not found in $PATH info secret-command not set```

Additional context

My dotfiles repo is public in case it is needed, let me know.

twpayne commented 2 years ago

Thanks for reporting this. The status.exclude config variable does not exist. Fix coming up...