From e34f9c87bb11630b0859eccf85ad4b292135d81d Mon Sep 17 00:00:00 2001 From: rhysd Date: Tue, 11 Aug 2020 16:51:06 +0900 Subject: [PATCH] describe how to specify multiple destinations in mappings object --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 009fc4b..001200a 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,17 @@ Below is an example of `.dotfiles/mappings_darwin.json`. } ``` +Values of the mappings object are basically strings representing destination paths, but they also can be arrays of strings. In the case, multiple symbolic links will be created for the source file. + +For example, the following configuration will make two symbolic links `~/.vimrc` and `~/.config/nvim/init.vim` for `vimrc` source file. + + +```json +{ + "vimrc": ["~/.vimrc", "~/.config/nvim/init.vim"] +} +``` + Real world example is [my dotfiles](https://github.com/rhysd/dogfiles/tree/master/.dotfiles). ## License