Skip to main content

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:

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

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.4.tar.gz (472.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dotfile_sync-0.0.4-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file dotfile_sync-0.0.4.tar.gz.

File metadata

  • Download URL: dotfile_sync-0.0.4.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

Hashes for dotfile_sync-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ee9917ece52d61a75138108272f008ad7cda1d5a6224d7a731e6255610dbdfad
MD5 f328089edab177f8245af971a689a598
BLAKE2b-256 ec71a1b2ccc92ade085aeb0f96ed6cd33c8f3446f61a1a211111a1f5560a8f69

See more details on using hashes here.

File details

Details for the file dotfile_sync-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: dotfile_sync-0.0.4-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

Hashes for dotfile_sync-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 335dbb3cccf007f49fb900d54aef5c9dc7dea48a27c980603e8595f9c8be7bc5
MD5 d189fe33456e3c21850fedb2fa1496d9
BLAKE2b-256 159e6a0c85a81e82ccb69ae403c4fe1c23417783b995ed9b97fa400642dd5438

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page