1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 05:39:43 +00:00

add -K --dkey

This commit is contained in:
deadc0de6
2024-11-08 14:43:55 +01:00
committed by deadc0de
parent 452271bcae
commit 2ad7bb3009
6 changed files with 168 additions and 14 deletions

9
docs/usage.md vendored
View File

@@ -40,8 +40,13 @@ $ dotdrop import ~/.xinitrc
1 file(s) imported.
```
You can control how the dotfile key is generated in the config file
with the following [config entries](config/config-config.md):
You can explicitely provide the key dotdrop should use for the dotfile entry
in the config file with the `-K --dkey` cli switch. Note that the provided
string will be sanitized for yaml. Also if the key already exists,
it will be appended with `_<incremental_number>` to avoid duplicates.
If the key is not provided, it will be automatically created based on the
following [config entries](config/config-config.md):
* `longkey`
* `false` (default): take the shortest unique path