Skip to main content

dotcp

Copy selected dotfiles to directory

What is it?

As said, dotcp copies your selected dotfiles to directory you indicated. For example, dotcp ~/awesome-dotifles/config/ will copy your selected dotfiles into ~/awesome-dotfiles/config/. How to select dotfiles, you would ask? dotcp has it's own config. E.g:

i3
fish
alacritty

(dotcp's config file path should be $XDG_CONFIG_HOME/dotcp/config, but you can indicate it using --config option)

Now, if you would run the previous command, dotcp will copy i3, fish and alacritty config directories into ~/awesome-dotfiles/config/.

Why?

Just wanted to have something similar to this script but customizable and extensible.

Installation

As any other shitty python program it can be easily installed via pip: pip install --user dotcp

Usage

At first just run dotcp without any flags, indicating destination directory that does not yet exist: dotcp destination-dir/

Then, to update content of destination-dir you will have to use one of these flags: --overwrite or --append.

  • --overwrite does the same thing as rm -r destination-dir && dotcp destination-dir
  • --append appends your selected dotfiles into destination-dir saving its content

Examples:

  • dotcp --overwrite destination-dir/
  • dotcp --append destination-dir/

Release files for dotcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dotcp 0.1.1
File Size Uploaded
dotcp-0.1.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dotcp 0.1.1
File Interpreter ABI Platform
dotcp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / dotcp-0.1.1.tar.gz

Download URL dotcp-0.1.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6fe9658f64e50cf3e076bcae8b12ce625911326ed0cd4ab8eabc5f6e2e1abc78
BLAKE2b-256 checksum
How to use checksums
12e6d83af30d0e76ee9068a68a151f4dc0a9aaae8d34c9d31d4172e56bc8bf08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.4

Release files / dotcp-0.1.1-py3-none-any.whl

Download URL dotcp-0.1.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84ebc0ffa4bc6fe3311c97b7bb07e50c69cd7b33b686607eb44346679a9129df
BLAKE2b-256 checksum
How to use checksums
e1b6b5741d3dfd4abfa3ee19c2744688f52f27b5bae3eec6f468695a96cab26e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page