mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 19:09:44 +00:00
update doc for update
This commit is contained in:
18
README.md
18
README.md
@@ -462,9 +462,23 @@ $ sudo pip3 install dotdrop --upgrade
|
|||||||
|
|
||||||
## Update dotfiles
|
## Update dotfiles
|
||||||
|
|
||||||
Dotfiles managed by dotdrop can be updated using the `update` command.
|
Dotfiles managed by dotdrop can be updated using the `update` command. When updating, only
|
||||||
|
dotfiles that have differences with the stored version are updated.
|
||||||
|
A confirmation is requested from the user before any overwrite/update unless the
|
||||||
|
`--force` switch is used.
|
||||||
|
|
||||||
There are two cases:
|
Either provide the path of the file containing the new version of the dotfile or
|
||||||
|
provide the dotfile key to update (as found in the config file) along with the `--key` switch.
|
||||||
|
When using the `--key` switch and no key is provided, all dotfiles for that profile are updated.
|
||||||
|
```bash
|
||||||
|
# update by path
|
||||||
|
$ dotdrop update ~/.vimrc
|
||||||
|
|
||||||
|
# update by key
|
||||||
|
$ dotdrop update f_vimrc
|
||||||
|
```
|
||||||
|
|
||||||
|
There are two cases when updating a dotfile:
|
||||||
|
|
||||||
**The dotfile doesn't use [templating](#template)**
|
**The dotfile doesn't use [templating](#template)**
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user