My dotfiles are in a barebone git repository. To avoid showing all files in my home folder every time I run git status, I set status.showUntrackedFiles = no.
However, I'd like the $HOME/.zsh/custom folder to be exempt from this rule as it only contains code relevant to my dotfiles. How could I manage such exclusion?
I've tried using a gitattribute file but per documentation it doesn't seem that we can change arbitrary configuration per file. I've also looked if there is a gitconfig file scope per folder, but it also seems like a dead end (documentation).
Do you have any idea how to manage this? I'd be happy with a hack as long as running git status shows me untracked files only for a specific folder.
I'm currently using git status -uall .zsh/custom as an alternative.
If you home folder is a git repo, then why not try and configure
~/.gitignoreto ignore files and folders? That's actually exactly what I do for my home folder repo