News for hackers. Stuff that matters.
Re:Chezmoi: manage your dotfiles securely across multiple ma... by sevensor on Monday January 14, 2019 @11:15AM (#18904056)
Although I regularly work on a number of different Linux machines, I've never felt the need for something like this and I suspect mine is not the target use case. But clearly synchronizing dotfiles is a thing people want. So, why? Who is this for? What problem does it solve for you?
Re:Chezmoi: manage your dotfiles securely across multiple ma... by twp on Monday January 14, 2019 @11:31AM (#18904176)
For me, the key things are:

- Security. You don't need to store any secrets in your dotfiles repo, and instead delegate secret storage to LastPass or Bitwarden or similar.

- Fine-grained control of small differences across machines, accounts, and operating systems. For example, I want my ~/.zshrc to be roughly the same between my personal macOS laptop and my work Ubuntu server, but I need a few differences between them due to email address, paths to binaries, and OS-specific configuration.

Re:Chezmoi: manage your dotfiles securely across multiple ma... by sevensor on Monday January 14, 2019 @11:35AM (#18904213)
So in this case, you have two machines, and you want each one to have a different configuration -- why not just have a different rc file on each machine and not bother syncing them. Is there a lot of custom dotfile config that you do want to share between them?
Re:Chezmoi: manage your dotfiles securely across multiple ma... by twp on Monday January 14, 2019 @11:56AM (#18904393)
I have five machines (personal macOS laptop, work Ubuntu laptop, personal Debian server, work Ubuntu server, personal Raspberry Pi) and yes, there is a lot of custom config that I want to share between them, particularly my git, zsh, vim, and i3 configs.
Re:Chezmoi: manage your dotfiles securely across multiple ma... by jacobtwotwo on Monday January 14, 2019 @11:30AM (#18904163)
I, a relative 'nix noob, have been wanting to play around with different distros without losing too much of my configurations in any particuar jump. It seems like this might work for my use.
Re:Chezmoi: manage your dotfiles securely across multiple ma... by rhinoceraptor on Monday January 14, 2019 @11:25AM (#18904127)
I use GNU Stow, it's really nice to clone my dotfiles repo, and run an install script to do the symlinks, and then my Vim, ZSH, tmux, git, etc. are all set up the way I like.
Re:Chezmoi: manage your dotfiles securely across multiple ma... by sevensor on Monday January 14, 2019 @11:32AM (#18904184)
OK, but why? Do you do this frequently? I feel like there's a hidden assumption here that I'm just not getting. Do you have a whole ton of machines you log into on a regular basis? Where it's deeply unproductive / impossible to use the default configuration? What gives rise to this state of affairs?
Re:Chezmoi: manage your dotfiles securely across multiple ma... by cytzol on Monday January 14, 2019 @11:56AM (#18904388)
> Do you have a whole ton of machines you log into on a regular basis? Where it's deeply unproductive / impossible to use the default configuration? What gives rise to this state of affairs?

I’m not the parent, but, yeah, this. I don’t have many machines that I need to connect to, but I make sure to sync my dotfiles to each of them. This gives me:

- A different shell prompt on each machine, so I’m less likely to type a command into the wrong one.

- Consistency in my shell aliases, so I never have to see “bash: ll: command not found” again. I have a lot of these, and I’d rather deal with syncing my dotfiles than re-mapping my muscle memory.

- All the helper scripts I’ve written over the last few years, so if I want to write a command and have it available everywhere, all I need to do is put it in a folder and wait for it to be synchronised.

I’ve been doing this for ages so I might be blind to some of the drawbacks, but I really like having the same terminal environment when I have to SSH somewhere else.

Re:Chezmoi: manage your dotfiles securely across multiple ma... by rhinoceraptor on Monday January 14, 2019 @11:46AM (#18904309)
I'm very comfortable with my keybindings for a lot of things, particularly the way I have vim and tmux set up to work nicely together. I also have a fairly extensive zsh config using vi mode and some alternate key bindings. If I remote in to a stock machine, I can get by though.

I have about 7 different machines/VMs/VPSes/partitions I use semi-regularly, so it's nice to have the exact same setup I use everywhere.

I also don't want to have to re-create my setup every time because I won't remember all the tweaks I set up months or years ago. I'm not the kind of user who constantly tweaks their configs, I've been using basically the same configs for about three years.

Re:Chezmoi: manage your dotfiles securely across multiple ma... by xur17 on Monday January 14, 2019 @11:55AM (#18904382)
> I'm very comfortable with my keybindings for a lot of things, particularly the way I have vim and tmux set up to work nicely together.

I'm the same way, and I have a similar setup. I have a public git repo with all of my custom git, vim, tmux, etc configs. It serves 2 purposes for me 1. make it easy to setup a new machine (literally run 1 command) and 2. provide a way to automatically backup configs for any machine I am on.

Everything I work on is either in git, dropbox, or I don't care about it. My goal is that I should be able to lose any computer I am working on, and be back up and running within a day.

Re:Chezmoi: manage your dotfiles securely across multiple ma... by sevensor on Monday January 14, 2019 @11:50AM (#18904336)
Huh, I have about the same number. I suppose this is a matter of personal taste. Thanks for addressing my curiosity!