diff options
author | Anish Athalye <me@anishathalye.com> | 2015-05-02 22:27:05 -0400 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2015-05-02 22:30:14 -0400 |
commit | 3725d216849f474ef627c708ac77c3cd15053fc4 (patch) | |
tree | 359fa4866cc79d04452e009e63cf5aa7a608e443 /README.md | |
parent | db8364490da392b4225844ddfc32e5fa69aa3821 (diff) |
Add functionality to overwrite broken links
This commit adds an option to the extended configuration syntax for
linking files and directories. The relink option is a safe alternative
to forcibly linking that only removes broken symbolic links, so it
cannot result in data loss.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -131,8 +131,9 @@ Link commands support an (optional) extended configuration. In this type of configuration, instead of specifying source locations directly, targets are mapped to extended configuration dictionaries. These dictionaries map `path` to the source path, specify `create` as `true` if the parent directory should be -created if necessary, and specify `force` as `true` if the file or directory -should be forcibly linked. +created if necessary, specify `relink` as `true` if incorrect symbolic links +should be automatically overwritten, and specify `force` as `true` if the file +or directory should be forcibly linked. #### Example @@ -142,7 +143,9 @@ should be forcibly linked. create: true path: config/terminator/ ~/.vim: vim/ - ~/.vimrc: vimrc + ~/.vimrc: + relink: true + path: vimrc ~/.zshrc: force: true path: zshrc |