| 1 |
$ . "$TESTDIR/helper.sh" |
| 2 |
|
| 3 |
Should handle dotfiles with spaces |
| 4 |
|
| 5 |
$ touch ".sublime text 3.config" .example |
| 6 |
$ touch .some\ other.config |
| 7 |
|
| 8 |
$ mkrc ".sublime text 3.config" .example .some\ other.config |
| 9 |
|
| 10 |
$ assert_linked "$HOME/.sublime text 3.config" "$HOME/.dotfiles/sublime text 3.config" |
| 11 |
> assert_linked "$HOME/.example" "$HOME/.dotfiles/example" |
| 12 |
> assert_linked "$HOME/.some other.config" "$HOME/.dotfiles/some other.config" |
| 13 |
|
| 14 |
Should handle hostnamed dotfiles with spaces |
| 15 |
|
| 16 |
$ touch ".sublime text 4.config" .example2 |
| 17 |
|
| 18 |
$ mkrc -o ".sublime text 4.config" .example2 |
| 19 |
|
| 20 |
$ assert_linked "$HOME/.sublime text 4.config" "$HOME/.dotfiles/host-$(hostname)/sublime text 4.config" |
| 21 |
> assert_linked "$HOME/.example2" "$HOME/.dotfiles/host-$(hostname)/example2" |
| 22 |
|
| 23 |
Should handle tagged dotfiles with spaces |
| 24 |
|
| 25 |
$ touch ".sublime text 5.config" .example3 |
| 26 |
|
| 27 |
$ mkrc -t whatever ".sublime text 5.config" .example3 |
| 28 |
|
| 29 |
$ assert_linked "$HOME/.sublime text 5.config" "$HOME/.dotfiles/tag-whatever/sublime text 5.config" |
| 30 |
> assert_linked "$HOME/.example3" "$HOME/.dotfiles/tag-whatever/example3" |