1
0
Fork 0
mirror of synced 2024-11-26 01:55:34 -05:00
Commit graph

17 commits

Author SHA1 Message Date
Anish Athalye
ee480d931b Fix bug 2018-04-13 08:49:02 -04:00
Anish Athalye
7d069b4ac8 Rename 'use_glob' to 'glob' 2018-04-13 08:49:02 -04:00
Ben Klein
564d16fcd5 Allow force and relink on glob items 2018-04-13 08:49:02 -04:00
Ben Klein
dece710399 Implement globbing support 2018-04-13 08:49:02 -04:00
Anish Athalye
f1e8297255 Fix bug with shell defaults 2017-06-27 21:27:50 -07:00
dein0s
a2a9e1fb91 Add force option to clean plugin 2017-03-26 11:19:26 -04:00
Anish Athalye
847cb101d4 Merge branch 'casey/empty-source' 2016-11-23 14:13:00 -05:00
Casey Rodarmor
d2e20c77db Allow empty link sources
If the source for a link is null, use the basename of the destination
with a single leading '.' removed, if present.
2016-11-23 14:11:45 -05:00
ael-code
58c8b98277 Fix error reporting in link plugin 2016-11-19 10:27:13 -06:00
Anish Athalye
b482cbda58 Make force only delete files when target exists 2016-11-17 14:12:22 -05:00
Kevin Heinicke
7593d8c134 Use current $SHELL for shell plugin 2016-11-17 13:50:12 -05:00
Anish Athalye
28959a3f31 Fix user expansion in link source
Previous to this patch, having a config like the following would not
work properly:

    - link:
        ~/a: ~/b

This was because the '~' was expanded on the left hand side (the link
target), but not the right hand side (the link source). It was necessary
to use a workaround like this:

    - link:
        ~/a: $HOME/b

This was because variable expansion was being done, but user expansion
was not being done.

This commit adds support for using '~' in the link source.
2016-08-17 18:27:47 -07:00
Anish Athalye
a836261d02 Fix variable expansion in extended syntax 2016-08-02 10:15:27 -07:00
Anish Athalye
191559601a Fix linking when using both relink and relative
Prior to this patch, the following config led to incorrect behavior:

    - link:
        ~/.folder/file:
          path: file
          create: true
          relative: true
          relink: true

Prior to the change, running the config the first time would result in
expected behavior. However, running the config for the second time would
result in deletion and re-creation of the link (even when the link is
correct).

This patch improves the interaction of relink and relative, taking
relative paths into account when checking the validity of existing links
in the `_delete()` method.
2016-04-07 14:45:46 -04:00
Anish Athalye
f52bbd1eec Add default options
This feature was implemented with feedback from Aleks Kamko
<aykamko@gmail.com> and Casey Rodarmor <casey@rodarmor.com>.
2016-03-03 09:42:50 -05:00
Anish Athalye
daf8d82e02 Add functionality to create relative links
This commit adds an option to the extended configuration syntax for
linking files and directories. Enabling the relative option makes it so
that symbolic links are created with relative paths instead of absolute
paths.
2016-02-14 23:06:52 -05:00
Casey Rodarmor
eeb4c284fb Add plugin loader 2016-02-06 15:14:35 -05:00