Live data from Hacker News

Show HN: Shittp – Volatile Dotfiles over SSH

github.com

41–50 of 97 posts

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#41
post #25

Earlier quoted context omitted.

I think this will copy your 9gb Mozilla cache directory as well? Still one liners like this is all you need lol

My mozilla cache would be under ~/.mozilla/firefox. Is the nightly version moving to ~/.config? Reason I say would be is that I disable disk cache among other things performed by Arkenfox [1] [1] - https://github.com/arkenfox/user.js

What does config have to do with the one liner?

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#42

Earlier quoted context omitted.

I think this will copy your 9gb Mozilla cache directory as well? Still one liners like this is all you need lol

Any sufficiently-advanced automated rsync would have a filter for caches.

Except only ssh is filtered. Just commenting on what I see, not what should be

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#47
post #25

Earlier quoted context omitted.

My mozilla cache would be under ~/.mozilla/firefox. Is the nightly version moving to ~/.config? Reason I say would be is that I disable disk cache among other things performed by Arkenfox [1] [1] - https://github.com/arkenfox/user.js

What does config have to do with the one liner?

Prevents some data from ending up in ~/.mozilla. We dont sync what does not exist.

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#48
post #13

How about mounting your dotfiles directory (~/.config) or even your entire home directory on the remote system using SSHFS or NFS? I'm sure somebody would have tried it or some project may already exist. Any idea why that isn't as prevalent as copying your dotfiles over?

That requires the remote machine to be configured to SSH into your local machine. In the scenario where OP's project is useful (SSH to foreign machines) I might not want that.

On the other hand, if the remote machine is mine, it will have my config anyway.

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#49
I have a python script [0] which builds and statically links my toolbox (fish, neovim, tmux, rg/fd/sd, etc.) into a self contained —-prefix which can be rsynced to any machine.

It has an activate script which sets PATH, XDG_CONFIG_HOME, XDG_DATA_HOME, and friends. This way everything runs out of that single dir and doesn’t pollute the remote.

My ssh RemoteCommand then just checks for and calls the activate script if it exists. I get dropped into a nice shell with all my config and tools wherever I go, without disturbing others’ configs or system packages.

[0] https://github.com/foltik/dots

Post reply on HN