| 1 |
$ . "$TESTDIR/helper.sh" |
| 2 |
> mv .dotfiles .other-dotfiles |
| 3 |
> mkdir .another-dotfiles |
| 4 |
> touch rcfile |
| 5 |
|
| 6 |
Trying to fool should result in no dir found error |
| 7 |
|
| 8 |
$ mkrc -d ".other-dotfiles .another-dotfiles" rcfile |
| 9 |
No dotfiles directories found in .other-dotfiles .another-dotfiles /*/.dotfiles (glob) |
| 10 |
[1] |
| 11 |
|
| 12 |
Giving 2 dotfiles dir should result in an error and exit EX_USAGE |
| 13 |
|
| 14 |
$ mkrc -d .dotfiles -d .other-dotfiles rcfile |
| 15 |
Only one '-d' option is allowed in mkrc. |
| 16 |
Usage: mkrc * (glob) |
| 17 |
see mkrc(1) and rcm(7) for more details |
| 18 |
[64] |
| 19 |
|
| 20 |
Giving one dotfiles dir should override default |
| 21 |
|
| 22 |
$ mv .other-dotfiles .dotfiles |
| 23 |
$ mkrc -v -d .another-dotfiles rcfile |
| 24 |
Moving... |
| 25 |
'/*/rcfile' -> '.another-dotfiles/rcfile' (glob) |
| 26 |
Linking... |
| 27 |
'/*/.another-dotfiles/rcfile' -> '/*/.rcfile' (glob) |
| 28 |
|