Wish there were a way to ignore certain files / subdirectories
feoh opened this issue · 7 comments
Case in point - I use Homesick to manage my emacs configs - ~/.emacs.d/*
Unfortunately, various emacs packages leave cruft in there - ~/.emacs.d/eshell/history, tmp, etc etc.
I wish there were a way to have those bits be ignored.
Are you looking to ignore the files in git, or have them not be copied into your home directory?
@nicolasmccurdy Both would be ideal but either would work. I tried playing with putting a .gitignore into my castle and that just seemed to confuse matters, but perhaps I wasn't doing it correctly.
gitignore is the path I would try. You can try adding this to your castle's .gitignore
:
home/.emacs.d/eshell/history
home/.emacs.d/eshell/tmp
That's what I do in mine for ignoring things like temporary files that wireshark generates in .wireshark
.
Is there a case for adding a homesick ignore
command for this or would this just be overloading homesick with too much? The workaround would be to use homesick cd
to open a shell in the root of the castle and doing what @technicalpickles suggests.
@technicalpickles I'm not having any luck getting the .gitignore method to work. I've been putting that at the root of my castle, at the same level as my home directory, is that right or should it go INTO home?