Skip to content

Commit

Permalink
describe how to specify multiple destinations in mappings object
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Aug 11, 2020
1 parent f3cf41c commit e34f9c8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -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
Expand Down

0 comments on commit e34f9c8

Please sign in to comment.