-
Notifications
You must be signed in to change notification settings - Fork 4
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
bootstrap #2
Comments
Maybe...
I wanted to make a PR for 2, but I wasn't sure anyone would care. |
Even without any special steps, binaries produced by
So one could check-in Or use NixOS, have it setup everything during installation. ;) |
Are you interested in a PR with |
How would that work? The problem I had with other dot-files managers was that they conflate repository management and just doing the linking. :D . And then I have to learn just another syntax, understand where do stuff goes, what is going on, what features are available, read the documentation, etc. For this reason, I used to use GNU Stow, but even that is too complicated.
I think it would be worthwhile to gather these two operations into a library. Let's call it What do you think? |
I was thinking of a |
If you're doing If you want it, let's do a shared library. I'm sure it would be useful for many other projects too, so that would be a good way to help the ecosystem. |
Mine's at
Sure, but last time I looked, I had some trouble understanding the linking and unlinking code 😕. |
You could always download a tarball and not use git at all if you don't plan on pushing back. Also you can just write a simple shell script to do it for you.
Potentially you could put the
Yes, these function are complicated and I don't think it is possible to simplify them much if at all. These are just complicated scenarios that have to take into account a lot of corner cases to do the right thing. That's why I think it might be worth putting into separate library. Also, I would have to write some test suite, at least for regressions, to keep the code correct. |
Mine's at clone, I can install git for anything else :-). @bugabinga
any opinion on this? There are computers (servers) where I'd like
some dotfiles, but where I don't plan to modify them (or even have a
private SSH key to the repository). But then again, I don't really
need this feature.
`git` is not the only storage backend for dotfiles out there. I have
friends that use `syncthing` and `NextCloud`. Some even _Dropbox_...
The bootstraping problem means that it will probably always be easiest
to use a shell script.
Maybe there is a clever way to `cat` _dotr_ onto the script?
Or have it simply be statically linked?
For this reason, I used to use GNU Stow, but even that is too
complicated.
To be fair, `stow` was not meant for this. I also find it too
complicated and it does funky stuff with linking folders, which has
bitten me in the past.
Yes, these function are complicated as hell, and I don't think it is
possible to simplify them much if at all. These just complicated
scenarios that have to take into account a lot of corner cases to do
the right thing. That's why I think it might be worth putting into
separate library.
This is reason enough for a separate crate. I will help with unit tests
if you decide to split out a lib, but I don't feel like refactoring ;).
Does Rust already have a crate for virtual filesystems? Although
symlink support in those is rare...
|
Hi!
How do you handle initial setup?
Suppose you setup a new machine:
A lot of steps, right ;)?
Any ideas how to get this down?
The text was updated successfully, but these errors were encountered: