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.6.tar.gz
(473.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.6.tar.gz.
File metadata
- Download URL: dotfile_sync-0.0.6.tar.gz
- Upload date:
- Size: 473.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed9c15fccbdc61aad3205d4d34bf223b4bc4d842ceb750cc34025d7f013e0db1
|
|
| MD5 |
b93df60169b5318247484e8ebdca5bc6
|
|
| BLAKE2b-256 |
9d47c5ecf0f0a2e05e3d4e7b2e7e3b515b6f4012d9d9e7cf081bb54e95642928
|
File details
Details for the file dotfile_sync-0.0.6-py3-none-any.whl.
File metadata
- Download URL: dotfile_sync-0.0.6-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2cf377d3bb548a82aa2555078920fde3b5fef2473a9496acf5a41c874aea748
|
|
| MD5 |
ceee3478180a914812e7d6e7e0341805
|
|
| BLAKE2b-256 |
9e81358db7868d95f35dd9f535f76806b68e47d9ae8de5b2d63f235df6c14ada
|