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
Show HN: Shittp – Volatile Dotfiles over SSH
41–50 of 97 posts
Re: Show HN: Shittp – Volatile Dotfiles over SSH
#42Earlier 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.
Re: Show HN: Shittp – Volatile Dotfiles over SSH
#43I didn't look closely at the project, but why take the extra step of base64? I do this all the time with tar by itself and it's wire-proof enough to work fine.
Re: Show HN: Shittp – Volatile Dotfiles over SSH
#44tmp="$(mktemp -d)" && rsync -a --exclude='.ssh' user@host:~/.[!.]* "$tmp"/ && HOME="$tmp" exec "$SHELL"
Re: Show HN: Shittp – Volatile Dotfiles over SSH
#45Re: Show HN: Shittp – Volatile Dotfiles over SSH
#46Re: Show HN: Shittp – Volatile Dotfiles over SSH
#47Earlier 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?
Re: Show HN: Shittp – Volatile Dotfiles over SSH
#48How 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?
On the other hand, if the remote machine is mine, it will have my config anyway.
Re: Show HN: Shittp – Volatile Dotfiles over SSH
#49It 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.