diff --git a/README.md b/README.md index e5a58b2..06d073b 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ Available extended configuration parameters: | `relink` | Removes the old target if it's a symlink (default:false) | | `force` | Force removes the old target, file or folder, and forces a new link (default:false) | | `relative` | Use a relative path when creating the symlink (default:false, absolute links) | -| `use_glob` | Treat a `*` character as a wildcard, and perform link operations on all of those matches (default:false) | +| `glob` | Treat a `*` character as a wildcard, and perform link operations on all of those matches (default:false) | #### Example @@ -213,7 +213,7 @@ the following three config files equivalent: force: true path: zshrc ~/.config/: - use_glob: true + glob: true path: config/* relink: true ``` @@ -227,7 +227,7 @@ the following three config files equivalent: ~/.zshrc: force: true ~/.config/: - use_glob: true + glob: true path: config/* relink: true ``` @@ -245,7 +245,7 @@ the following three config files equivalent: "force": true }, "~/.config/": { - "use_glob": true, + "glob": true, "path": "config/*", "relink": true } diff --git a/plugins/link.py b/plugins/link.py index d0f057e..64d2070 100644 --- a/plugins/link.py +++ b/plugins/link.py @@ -28,14 +28,14 @@ class Link(dotbot.Plugin): force = defaults.get('force', False) relink = defaults.get('relink', False) create = defaults.get('create', False) - use_glob = defaults.get('use_glob', False) + use_glob = defaults.get('glob', False) if isinstance(source, dict): # extended config relative = source.get('relative', relative) force = source.get('force', force) relink = source.get('relink', relink) create = source.get('create', create) - use_glob = source.get('use_glob', use_glob) + use_glob = source.get('glob', use_glob) path = self._default_source(destination, source.get('path')) else: path = self._default_source(destination, source)