summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAnish Athalye <me@anishathalye.com>2016-11-23 14:13:00 -0500
committerAnish Athalye <me@anishathalye.com>2016-11-23 14:13:00 -0500
commit847cb101d486319da882f958b1cb58b515cc6db2 (patch)
treec42dd92dab7dc01c74c97f80a42ad2c8e128378d /README.md
parent4468fff67a9e9d9f611d5dade4a9486e75dafa1c (diff)
parentd2e20c77db3811d8d0ef640a743f8dcc85075fdc (diff)
Merge branch 'casey/empty-source'
Diffstat (limited to 'README.md')
-rw-r--r--README.md43
1 files changed, 43 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5ce8461..71731e6 100644
--- a/README.md
+++ b/README.md
@@ -192,6 +192,49 @@ symbolic link should have a relative path.
path: zshrc
```
+If the source location is omitted or set to `null`, Dotbot will use the
+basename of the destination, with a leading `.` stripped if present. This makes
+the following three config files equivalent:
+
+```yaml
+- link:
+ ~/bin/ack: ack
+ ~/.vim: vim
+ ~/.vimrc:
+ relink: true
+ path: vimrc
+ ~/.zshrc:
+ force: true
+ path: zshrc
+```
+
+```yaml
+- link:
+ ~/bin/ack:
+ ~/.vim:
+ ~/.vimrc:
+ relink: true
+ ~/.zshrc:
+ force: true
+```
+
+```json
+[
+ {
+ "link": {
+ "~/bin/ack": null,
+ "~/.vim": null,
+ "~/.vimrc": {
+ "relink": true
+ },
+ "~/.zshrc": {
+ "force": true
+ }
+ }
+ }
+]
+```
+
### Shell
Shell commands specify shell commands to be run. Shell commands are run in the