Is there a way to configure OSX to always show particular dot files?
I'm familiar with the commands to toggle between showing and hiding hidden files.
Show Hidden Files:
defaults write com.apple.finder AppleShowAllFiles 1 && killall Finder
Hide Hidden Files:
defaults write com.apple.finder AppleShowAllFiles 0 && killall Finder
I also created a quick-click macro to toggle visibility using these commands; however, even this usage is annoying because of frequency. The reason I toggle often is because I prefer not to have all hidden files always visible. Hiding minimizes chance of accidental selections, deletions, etc.
For example, in many of my projects I want to always see
.gitignore files but, do not want
.git folders to also be visible.