Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow files to be added to fresh controlled directories #78

Open
twe4ked opened this issue Jun 4, 2013 · 4 comments
Open

Allow files to be added to fresh controlled directories #78

twe4ked opened this issue Jun 4, 2013 · 4 comments

Comments

@twe4ked
Copy link
Member

twe4ked commented Jun 4, 2013

The following should work:

fresh vim/colors --file=~/.vim/colors/
fresh JacksonGariety/Toy-Chest-Theme toychest.vim --file=~/.vim/colors/toychest.vim
@andyleejordan
Copy link

Also:

fresh andschwa/emacs.d/ . --file=~/.emacs.d/

Should symlink the files from the git repository, and not erase files that Emacs generates in that folder (that also exist in the repo's .gitignore file). This currently does not work, because fresh will destroy the package archives that my init.el file downloads.

@jasoncodes
Copy link
Member

@andschwa This has been discussed previously over in issue #80. You should be able to accomplish what you’re after using fresh_after_build as mentioned in my comment there.

To keep everything in one place, please keep any further discussion about this over on the other issue. Cheers.

@mikelococo
Copy link

I hit this within about an hour of experimenting with fresh. Fresh excels at composing files together and composing files to make directories, but composing files with managed directories using hooks/callbacks feels awkward. The proposed solution of symlinking all of the individual files rather than the top-level directory seems elegant to me since it allows other fresh mechanisms to "just work" within managed directories and also preserves non-managed files within across fresh updates.

@mikelococo
Copy link

Here's a complete example of a relatively simple workaround that adds the 'personal' directory to prelude's '.emacs.d' directory. It totally opts out of the fresh tooling to do so, though, just using raw sh and git in the freshrc (taking advantage of being able to script within freshrc):

https://github.com/sanbor/dotfiles/blob/c9464f585d3508d36bf58e57742f66f5e2d8be91/freshrc#L25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants