test/rcrc.t
raw| 1 | $ . "$TESTDIR/helper.sh" |
| 2 | |
| 3 | Information should be read from ~/.rcrc by default |
| 4 | |
| 5 | $ touch .example |
| 6 | > mkdir .other-dotfiles |
| 7 | |
| 8 | $ echo 'DOTFILES_DIRS="$HOME/.other-dotfiles"' > $HOME/.rcrc |
| 9 | |
| 10 | $ mkrc -v .example |
| 11 | Moving... |
| 12 | '*/.example' -> '*/.other-dotfiles/example' (glob) |
| 13 | Linking... |
| 14 | '*/.other-dotfiles/example' -> '*/.example' (glob) |
| 15 | |
| 16 | $ assert_linked "$HOME/.example" "$HOME/.other-dotfiles/example" |