Improve readme wording, == -> is, wrap to 80 characters, use 4 space
indentation
This commit is contained in:
parent
4bfa3291ba
commit
1a52e42555
2 changed files with 11 additions and 9 deletions
|
@ -189,7 +189,9 @@ symbolic link should have a relative path.
|
||||||
path: zshrc
|
path: zshrc
|
||||||
```
|
```
|
||||||
|
|
||||||
If the source location is omitted or NULL, dotbot will use the destination instead, without a leading `.` if present. This makes the following three config files equivalent:
|
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
|
```yaml
|
||||||
- link:
|
- link:
|
||||||
|
|
|
@ -47,14 +47,14 @@ class Link(dotbot.Plugin):
|
||||||
return success
|
return success
|
||||||
|
|
||||||
def _default_source(self, destination, source):
|
def _default_source(self, destination, source):
|
||||||
if source == None:
|
if source is None:
|
||||||
basename = os.path.basename(destination)
|
basename = os.path.basename(destination)
|
||||||
if basename.startswith('.'):
|
if basename.startswith('.'):
|
||||||
return basename[1:]
|
return basename[1:]
|
||||||
else:
|
else:
|
||||||
return basename
|
return basename
|
||||||
else:
|
else:
|
||||||
return source
|
return source
|
||||||
|
|
||||||
def _is_link(self, path):
|
def _is_link(self, path):
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue