Re:Fulfilling a reader's request for my “dot files”
by HDevo on Saturday May 06, 2023 @06:11AM
(#35839892)
I use https://www.chezmoi.io/, which deals with that with templates and/or scripts. It's very flexible, so it can feel overkill, but I'm very fond of it.
Re:Fulfilling a reader's request for my “dot files”
by fcsp on Saturday May 06, 2023 @05:58AM
(#35839829)
I use https://github.com/thoughtbot/rcm, which works smoothly and includes support for host-specific files
Re:Fulfilling a reader's request for my “dot files”
by frumiousirc on Saturday May 06, 2023 @09:25AM
(#35841154)
Some application configuration does not allow host name resolution. In this case a symlink to a host-specific config file is used. Like, for `kitty` I make a `<hostname>.conf` for each host on which I have an account and then make a local, per account symlink to a literal `local.conf` included from `kitty.conf`. This same pattern is useful in configs that do allow dynamic host name resolution as it robust against cases where the host name unexpectedly changes.
All dot files are distributed via `vcsh` with the remote `git` repo in a personal `gitea` instance.
Re:Fulfilling a reader's request for my “dot files”
by earthling8118 on Sunday May 07, 2023 @10:20AM
(#35851818)
I've used many different methods but none of them stuck until I started using https://github.com/nix-community/home-manager
Currently I just add a small if statement that checks if my custom file with all my little aliases I have put together over the years is there it sources it. Is there a better way?