freshshell / fresh

Keep your dotfiles fresh.

Home Page:https://freshshell.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to allow write in dotfile

delucca opened this issue · comments

Hi everyone!

I'm loving the lib, using it a lot :)

I'm trying to backup my dconf config (located at ~/.config/dconf). To do so, I just need to create a symlink between the dotfile folder and the original one.

I was able to do that with fresh, but it mounts the file as read-only, and that breaks my OS (since dconf is pretty sensitive, we need to allow write in it).

There is any any to link the dotfile directly? Without building it to a different folder to protect against writes?

We don't have a way to support writable files at the moment, there are some tricky considerations to do with concatenating multiple files and how to handle updating the file if it comes from a remote source.

For now you can add a manual ln -s in the fresh_after_build hook, here's an example

Here's the tracking issue: #66

Feel free to add more context there!

There is also another suggestion from @jasoncodes there.