mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-05 03:54:47 +00:00
1.4 KiB
1.4 KiB
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.
- for install
- using
instignorein the config file
- using
- for compare
- using
cmpignorein the config file - using the command line switch
-i --ignore
- using
- for update
- using
upignorein the config file - using the command line switch
-i --ignore
- using
The ignore pattern must follow Unix shell-style wildcards like for example */path/to/file.
Make sure to quote those when using wildcards in the config file.
Patterns used on a specific dotfile can be specified relative to the dotfile destination (dst).
config:
cmpignore:
- '*/README.md'
upignore:
- '*/README.md'
instignore:
- '*/README.md'
...
dotfiles:
d_vim
dst: ~/.vim
src: vim
upignore:
- "*/undo-dir"
- "*/plugged"
...
examples
To completely ignore comparison of a specific dotfile:
dotfiles:
d_vim
dst: ~/.vim
src: vim
cmpignore:
- "*"
To ignore specific directory when updating
dotfiles:
d_colorpicker:
src: config/some_directory
dst: ~/.config/some_directory
upignore:
- '*sub_directory_to_ignore'