technicalpickles/homesick

Wish there were a way to ignore certain files / subdirectories

feoh opened this issue · 7 comments

feoh commented

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?

feoh commented

@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.

feoh commented

@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?

@feoh can you post an example of the gitignore file? Are you sure that the paths in the file are correct?

@feoh I'm going to close this as there hasn't been a reply in almost a year. Feel free to reopen if need be.