Anish Athalye
320d5d0123
Add tests for canonicalize-path
2020-01-03 16:45:35 -05:00
Robin Schneider
138fdbc8d7
Add 'canonicalize-path' option to link
...
Dotbot had a hardcoded behaviour that the BASEDIR was always passed to
os.path.realpath which "returns the canonical path of the specified
filename, eliminating any symbolic links encountered in the path".
This might not always be desirable so this commit makes it configurable.
The use case where `canonicalize-path` comes in handy is the following:
You want to provide dotfiles in the Filesystem Hierarchy Standard under
`/usr/local/share/ypid_dotfiles/`. Now you want to provide
`.config/dotfiles` as a default in `/etc/skel`. When you now
pre-configure `/etc/skel` by running dotbot in it set has HOME, dotfiles
will refer to `/usr/local/share/ypid_dotfiles/` and not
`/etc/skel/.config/dotfiles` which does not look nice.
This is related to but not the same as the `relative` parameter used
with link commands.
2020-01-03 22:35:13 +01:00
Anish Athalye
e38e021ab3
Add option to clean recursively
2019-12-31 19:14:23 -05:00
Anish Athalye
81f0d74955
Fix clean not respecting defaults
...
Previously, clean read the defaults once, and then it updated the
setting for each entry it read. This resulted in the defaults being
clobbered and then not being respected for subsequent entries. This
patch fixes the issue by re-reading the defaults before processing each
item.
The other plugins (link, shell) do not have this problem.
2019-12-31 14:47:32 -05:00
Anish Athalye
a7bfce3e23
Merge branch 'apuignav/ignore-missing'
2019-12-31 14:26:26 -05:00
Albert Puig
eabd84bce1
Add ignore-missing option to link
2019-12-31 14:25:53 -05:00
Anish Athalye
a8380f6496
Migrate to travis-ci.com
2019-12-28 10:44:24 -05:00
Anish Athalye
2c8a0431ed
Bump PyYAML version to 5.1.2
2019-11-20 10:47:10 -05:00
Anish Athalye
8667b75a73
Add example of conditional link
2019-11-14 16:30:47 -05:00
Anish Athalye
7f97a6c6d0
Make list more compact
2019-11-12 15:01:03 -05:00
Anish Athalye
2c27655500
Merge branch 'jesseleite/readme-organization'
2019-11-12 13:44:49 -05:00
Jesse Leite
daf3a7c483
Add table of contents and organize headings a bit
2019-11-12 13:44:28 -05:00
Anish Athalye
2dc876cd65
Merge branch 'paulohefagundes/remove_which'
2019-11-09 12:40:20 -05:00
Paulo Fagundes
d2913e6cee
Replace which
with command -v
...
Some distributions such as Arch Linux no longer install `which` by
default through the base package (see
https://www.archlinux.org/news/base-group-replaced-by-mandatory-base-package-manual-intervention-required/ ).
The maintainers have explained why `command -v` is superior:
https://www.reddit.com/r/archlinux/comments/de1er6/arch_linux_news_base_group_replaced_by_mandatory/f2v8uhu/ .
2019-11-09 12:38:01 -05:00
Anish Athalye
5bb3c8a343
Release 1.16.0
2019-10-12 12:02:40 -04:00
Anish Athalye
04c113b5b8
Merge branch 'jesseleite/create-directive'
2019-10-12 11:55:18 -04:00
Jesse Leite
5a0f6676d4
Add 'create' directive to create directories
2019-10-12 11:55:09 -04:00
Anish Athalye
32741ea0ca
Switch to more recent version of Debian
2019-10-12 10:36:35 -04:00
Anish Athalye
cdef01e9c4
Merge branch 'darsh12/master'
2019-09-17 08:35:08 -04:00
Darshan Patel
d6975dc660
Add instructions to ignore dirty commits
2019-09-17 08:34:58 -04:00
Anish Athalye
d20984f5ac
Remove explicit specification of environment
2019-08-18 14:25:04 -04:00
Anish Athalye
4ca0cb5445
Update Travis CI config
...
- Use Xenial for all tests
- Drop support for Python 3.2 and Python 3.3
2019-08-18 14:17:55 -04:00
Anish Athalye
9a8d292681
Make launcher prefer python over python3
...
This patch makes the launcher script prefer `python`, when present, over
`python3`. This way, the launcher uses the user's preferred `python`
(which is often set up as a symbolic link to a particular python2.x or
python3.x), when available.
2019-06-26 15:00:07 -04:00
Anish Athalye
8454021d66
Merge branch 'ronalabraham/patch-1'
2019-06-05 14:32:53 -04:00
ronalabraham
017c70b5b0
Change target
to source
for consistency with docs
2019-06-04 15:20:00 -04:00
ronalabraham
c97472bc27
Fix path
parameter's docs for linking feature
2019-06-04 14:42:21 -04:00
Anish Athalye
b062aeaf15
Simplify README
...
This patch removes JSON examples from the README.
2019-02-06 09:30:49 -05:00
Anish Athalye
cd04d886fe
Update dates
2019-01-09 20:46:21 -05:00
Anish Athalye
fa33cda9e6
Add Python 3.7 to Travis CI tests
2019-01-09 20:45:31 -05:00
Anish Athalye
5d74f29001
Release 1.15.0
2018-11-21 19:52:03 -05:00
Anish Athalye
5e2d40939e
Merge branch 'thtliife/suppress-shell-cmd'
2018-11-21 19:50:46 -05:00
Anish Athalye
dc05786693
Add test
2018-11-21 19:50:32 -05:00
Vito Giarrusso
3bda18ed9c
Add quiet option to shell plugin
2018-11-21 19:50:32 -05:00
Anish Athalye
8558a5dca0
Release 1.14.1
2018-11-19 20:39:19 -05:00
Anish Athalye
b35462ab95
Merge branch 'qubidt/default-link-conditional'
2018-11-19 20:38:59 -05:00
Anish Athalye
1be9f7532b
Add test
2018-11-19 20:38:29 -05:00
Bao Trinh
7add866215
Support defining default conditional option for links
2018-11-17 15:00:18 -06:00
Anish Athalye
e35b0794fd
Release 1.14.0
2018-10-16 20:52:09 -04:00
Anish Athalye
1b17e8e613
Merge branch 'linkif'
2018-10-16 20:50:59 -04:00
Anish Athalye
b0ce63904c
Add test for conditional linking
2018-10-16 20:22:50 -04:00
Ben Klein
a9cf9fffe4
Implement conditional linking
2018-10-16 20:22:40 -04:00
Anish Athalye
b442b9bdce
Merge branch 'phallstrom/option-no-color'
2018-10-08 21:02:41 -07:00
Philip Hallstrom
a22d980cdf
Add option --no-color to suppress colorization of output
...
By default, if output is a TTY, dotbot will colorize the output. This
patch adds the option to pass `--no-color` to dotbot to have it suppress
this colorization.
2018-10-06 16:08:26 -07:00
Anish Athalye
f197ededb1
Merge branch 'dsifford/fix-clean'
2018-08-06 20:56:11 -04:00
Anish Athalye
9332cde5ad
Add test for environment variable expansion
2018-08-06 20:53:17 -04:00
Derek P Sifford
cf55ca5188
Fix clean path expansion to expand env vars
2018-08-06 20:41:42 -04:00
Anish Athalye
f95cbe2705
Release 1.12.4
2018-06-18 09:30:11 -04:00
Anish Athalye
9d967ad7e8
Include built-in plugins in PyPI distribution
2018-06-11 21:14:10 -04:00
Anish Athalye
f7a8bf10ba
Fix script
...
It is only legal to `return` from a function or sourced script. The
right builtin to use here is `exit`.
2018-06-07 13:04:19 -04:00
Anish Athalye
e72e3b47a0
Make install script less noisy
...
Before this patch, the `git submodule sync` line would always print to
stdout.
2018-06-05 11:42:16 -04:00