mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 14:31:46 +00:00
Document ignore-missing
This commit is contained in:
@@ -645,3 +645,21 @@ dotfiles:
|
||||
trans_read: r_echo_var
|
||||
trans_write: w_echo_var
|
||||
```
|
||||
|
||||
## Ignoring missing files
|
||||
|
||||
The [ignore missing files setting](./usage/#ignoring-missing-files)
|
||||
can be configured globally or on a specific dotfile.
|
||||
|
||||
To configure globally, place the following in `config.yaml`:
|
||||
```yaml
|
||||
config:
|
||||
ignore_missing_in_dotdrop: True
|
||||
```
|
||||
|
||||
To configure per dotfile:
|
||||
```yaml
|
||||
dotfiles:
|
||||
f_abc:
|
||||
ignore_missing_in_dotdrop: True
|
||||
```
|
||||
|
||||
@@ -108,7 +108,8 @@ It is also possible to install all dotfiles for a specific profile
|
||||
in a temporary directory in order to manually compare them with
|
||||
the local version by using `install` and the `-t` switch.
|
||||
|
||||
For more options, see the usage with `dotdrop --help`
|
||||
For more options, see the usage with `dotdrop --help`.
|
||||
See also [ignoring missing files](#ignoring-missing-files).
|
||||
|
||||
## List profiles
|
||||
|
||||
@@ -218,6 +219,8 @@ Installed to tmp /tmp/dotdrop-6ajz7565
|
||||
$ diff ~/.vimrc /tmp/dotdrop-6ajz7565/home/user/.vimrc
|
||||
```
|
||||
|
||||
See also [ignoring missing files](#ignoring-missing-files).
|
||||
|
||||
## Remove dotfiles
|
||||
|
||||
The command `remove` allows to stop managing a specific dotfile with
|
||||
@@ -287,3 +290,19 @@ export DOTDROP_WORKDIR="/tmp/dotdrop-workdir"
|
||||
```bash
|
||||
export DOTDROP_WORKERS="10"
|
||||
```
|
||||
|
||||
## Ignoring missing files
|
||||
|
||||
Sometimes, it is nice to have [`update`](#update-dotfiles) not copy all the files in the installed directory
|
||||
or [`compare`](#compare-dotfiles) diff them.
|
||||
|
||||
For example,
|
||||
maybe you only want to include a single configuration file in your repository
|
||||
and don't want to include other files the program uses,
|
||||
such as a cache.
|
||||
Maybe you only want to change one file and don't want the others cluttering your repository.
|
||||
Maybe the program changes these files quite often and creates unnecessary diffs in your dotfiles.
|
||||
|
||||
In these cases, you can use the `ingore-missing` option.
|
||||
This option is available as a flag (`--ignore-missing` or `-z`) to the `update` and `compare` commands,
|
||||
or [as a configuration option either globally or on a specific dotfile](./config-details/#ignoring-missing-files).
|
||||
|
||||
Reference in New Issue
Block a user