| ▲ | Y_Y 14 hours ago |
| tmp="$(mktemp -d)" && rsync -a --exclude='.ssh' user@host:~/.[!.]* "$tmp"/ && HOME="$tmp" exec "$SHELL"
|
|
| ▲ | grepfru_it 13 hours ago | parent | next [-] |
| I think this will copy your 9gb Mozilla cache directory as well? Still one liners like this is all you need lol |
| |
| ▲ | Bender 12 hours ago | parent | next [-] | | 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 | | |
| ▲ | lights0123 9 hours ago | parent | next [-] | | Yes, Firefox 147 will respect XDG dirs. | |
| ▲ | 12 hours ago | parent | prev | next [-] | | [deleted] | |
| ▲ | grepfru_it 11 hours ago | parent | prev [-] | | What does config have to do with the one liner? | | |
| ▲ | Bender 11 hours ago | parent [-] | | Prevents some data from ending up in ~/.mozilla. We dont sync what does not exist. | | |
| ▲ | grepfru_it 9 hours ago | parent [-] | | My guy, the one liner as written copies all dot files. Mozilla included | | |
| ▲ | Bender 8 hours ago | parent [-] | | My guy, the one liner as written copies all dot files. Mozilla included Exactly why I apply Sun Tzu methodology. |
|
|
|
| |
| ▲ | sigwinch 12 hours ago | parent | prev [-] | | Any sufficiently-advanced automated rsync would have a filter for caches. | | |
| ▲ | grepfru_it 11 hours ago | parent [-] | | Except only ssh is filtered. Just commenting on what I see, not what should be | | |
| ▲ | Y_Y 11 hours ago | parent [-] | | For sure, you need to exclude whatever "dotfiles" you don't want copied (or explicitly copy the ones you want), particularly caches and other giant hidden things. |
|
|
|
|
| ▲ | sdovan1 11 hours ago | parent | prev | next [-] |
| Overriding HOME variable is neat! Make things much easier. |
|
| ▲ | imiric 14 hours ago | parent | prev [-] |
| I use something similar. It's surprising to me how many projects can be replaced with just a line or two of shell script. This project is a slightly more sophisticated shell script that exposes a friendlier UI, but I don't see why it's needed when the alternative is much simpler, considering the target audience. |