dotcp-0.1.1
توضیحات
copy selected dotfiles to directory
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dotcp-0.1.1 |
| نام | dotcp |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | jieggii <jieggii.contact@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/dotcp/ |
| مجوز | MIT |
# 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](https://github.com/jieggii/dotfiles/blob/ed77dc9c0a5056cd00d9e647e6d55a1498783434/update.bash) 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/`
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.2 | Python |
نحوه نصب
نصب پکیج whl dotcp-0.1.1:
pip install dotcp-0.1.1.whl
نصب پکیج tar.gz dotcp-0.1.1:
pip install dotcp-0.1.1.tar.gz