mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-06 15:27:59 +00:00
adding impignore
This commit is contained in:
@@ -21,6 +21,7 @@ Entry | Description | Default
|
||||
`filter_file` | list of paths to load templating filters from (see [Templating available filters](templating.md#template-filters)) | -
|
||||
`func_file` | list of paths to load templating functions from (see [Templating available methods](templating.md#template-methods)) | -
|
||||
`ignoreempty` | do not deploy template if empty | false
|
||||
`impignore` | list of patterns to ignore when importing (enclose in quotes when using wildcards, see [ignore patterns](config.md#ignore-patterns)) | -
|
||||
`import_actions` | list of paths to load actions from (absolute path or relative to the config file location, see [Import actions from file](config-details.md#entry-import_actions)) | -
|
||||
`import_configs` | list of config file paths to be imported in the current config (absolute path or relative to the current config file location, see [Import config files](config-details.md#entry-import_configs)) | -
|
||||
`import_variables` | list of paths to load variables from (absolute path or relative to the config file location see [Import variables from file](config-details.md#entry-import_variables)) | -
|
||||
|
||||
@@ -151,11 +151,12 @@ profiles:
|
||||
|
||||
## Ignore patterns
|
||||
|
||||
It is possible to ignore specific patterns when using dotdrop. For example for `compare` when temporary
|
||||
files don't need to appear in the output.
|
||||
It is possible to ignore specific patterns when using dotdrop.
|
||||
|
||||
* for [install](usage.md#install-dotfiles)
|
||||
* using `instignore` in the config file
|
||||
* for [import](usage.md#import-dotfiles)
|
||||
* using `impignore` in the config file
|
||||
* for [compare](usage.md#compare-dotfiles)
|
||||
* using `cmpignore` in the config file
|
||||
* using the command line switch `-i --ignore`
|
||||
@@ -207,3 +208,11 @@ dotfiles:
|
||||
- '*sub_directory_to_ignore'
|
||||
```
|
||||
|
||||
To ignore specific file `testfile` and directory `testdir` when importing:
|
||||
```yaml
|
||||
config:
|
||||
impignore:
|
||||
- "*/testfile"
|
||||
- "testdir"
|
||||
...
|
||||
```
|
||||
|
||||
@@ -68,6 +68,8 @@ dotfiles management.
|
||||
$ dotdrop import ~/.zshrc --as=~/.zshrc.test
|
||||
```
|
||||
|
||||
To ignore specific pattern during import see [the ignore patterns](config.md#ignore-patterns)
|
||||
|
||||
For more options, see the usage with `dotdrop --help`
|
||||
|
||||
## Install dotfiles
|
||||
|
||||
Reference in New Issue
Block a user