dotfile sycn auxiliary tool for scp
Project description
dotfile-sync
An auxiliary tool for syncing dotfiles using scp.
The only usage is:
dotfile-sync <remote-host> <remote-path> <local-path>
Example:
which is roughly equivalent to:
# Make tmpdirs
tmp=$(mktemp -d)
mkdir -p $tmp/local
mkdir -p $tmp/remote
# We work on tmps
cp ~/.zshrc $tmp/local/.zshrc
scp <remote-host>:~/.zshrc $tmp/remote/.zshrc
# Show diff
git diff --no-index $tmp/local/.zshrc $tmp/remote/.zshrc
# If you choose to edit interactively
git difftool --no-index $tmp/local/.zshrc $tmp/remote/.zshrc
# If you choose to sync with local tmp
# local backup
cp ~/.zshrc ~/.zshrc.dsbak
# sync
cp $tmp/local/.zshrc ~/.zshrc
Install
pipx install dotfile-sync
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dotfile_sync-0.0.5.tar.gz
(472.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dotfile_sync-0.0.5.tar.gz.
File metadata
- Download URL: dotfile_sync-0.0.5.tar.gz
- Upload date:
- Size: 472.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a45ababf650c37ccd83bbdedf9c5e07c6b81c21cae7a38f1a96a7c11444ff0a
|
|
| MD5 |
891095fa40331bbccc3530b0c311d348
|
|
| BLAKE2b-256 |
f8b9d881068d8c07aa7a52a618122593e8bc917343f2b44e708e5275fa9f4534
|
File details
Details for the file dotfile_sync-0.0.5-py3-none-any.whl.
File metadata
- Download URL: dotfile_sync-0.0.5-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
895380f5c1e1870e35d350e2a1e95f50a3ab5c9ced39592db8547efe0b960e63
|
|
| MD5 |
f401cbff8ee5e4493efb0c9f41482fb8
|
|
| BLAKE2b-256 |
f93746a74830569ce772925bf1884142ebd33a7a793c7acb64d18b6e9e501240
|