srsudar / eg

Useful examples at the command line.
MIT License
1.8k stars 99 forks source link

Better and convenient custom functionnality #48

Closed arnaudmm closed 4 years ago

arnaudmm commented 8 years ago

Hey!

Why not create a custom dir and include its content by default ? And add it to .gitigore

This way we can git clone, create our very custom in this folder, commit them to our personnal repo, and from time to time git pull this original repo to get updates.

What do you think about it ?

srsudar commented 8 years ago

That is an interesting idea. Users that clone the repo (as opposed to installing via pip) could already do something like this with some git trickery. If you made a custom-dir in the repo and added a .gitignore to that directory with * to ignore everything, it would allow you to keep both in the same place.

This would still have to be configured using an .egrc, though, so that eg would know where to look. You're suggesting that we would look for a custom-dir of some sort in the base directory by default?

arnaudmm commented 8 years ago

Yes exactly! If you do that, we don't have to do anything : -customdir already created -already ignored in gitignore -no need for an egrc configuration

Would be great! Le 10 oct. 2015 07:04, "Sam Sudar" notifications@github.com a écrit :

That is an interesting idea. Users that clone the repo (as opposed to installing via pip) could already do something like this with some git trickery. If you made a custom-dir in the repo and added a .gitignore to that directory with * to ignore everything, it would allow you to keep both in the same place.

This would still have to be configured using an .egrc, though, so that eg would know where to look. You're suggesting that we would look for a custom-dir of some sort in the base directory by default?

— Reply to this email directly or view it on GitHub https://github.com/srsudar/eg/issues/48#issuecomment-147038794.

srsudar commented 4 years ago

Sorry for the epic delay (five years!). I think you can already replicate this behavior on your own easily enough that I'm not inclined to add it. You can use the git trick I suggested above, add your custom examples to whatever repo you use to version your dotfiles (this is what I do), or even just edit the examples that ship with eg and still perform merges.