karan / joe

:running: A .gitignore magician in your command line
http://karan.github.io/joe/
MIT License
2.88k stars 210 forks source link

fixes for windows #103

Open andrewmeissner opened 5 years ago

andrewmeissner commented 5 years ago

Hi @karan,

I love this tool. I've been using it for as long as I can remember. Thanks so much for making it (and also thanks for rewriting this in Go!)

I noticed that when I downloaded the executable from the releases page, I was getting an error about the system not being able to find /tmp/master.zip, which makes sense because I'm on a windows machine. I tweaked it a little bit and added an extra library to determine where the home directory is based on the users machine. It works on my windows box now, but I wasn't able to test it on a Darwin or Linux machine yet.

Here's the PR - sorry about all the whitespace changes, my formatter ran a train on it. :/

Thanks again!