Skip to main content

copy selected dotfiles to directory

Project description

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/

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

dotcp-0.1.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

dotcp-0.1.1-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

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