summaryrefslogtreecommitdiff
path: root/test/rcrc-custom.t
blob: 9c1c7a3c8150b02cb299899ee17f37cd3a6617b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  $ . "$TESTDIR/helper.sh"

mkrc should accept a custom rcrc

  $ touch .example
  > mkdir .other-dotfiles

  $ echo 'DOTFILES_DIRS="$HOME/.other-dotfiles"' > alt-rcrc

  $ RCRC=./alt-rcrc mkrc -v .example
  Moving...
  '*/.example' -> '*/.other-dotfiles/example' (glob)
  Linking...
  '*/.other-dotfiles/example' -> '*/.example' (glob)

  $ assert_linked "$HOME/.example" "$HOME/.other-dotfiles/example"