blob: 55ab37e4a714e1226bc61bce47e15feacb329b35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$ . "$TESTDIR/helper.sh"
rcrc should accept a DOTFILES_DIR with a ~ instead of $HOME
$ mkdir ~/.other-dotfiles
> touch ~/.other-dotfiles/o-example
$ echo 'DOTFILES_DIRS="~/.other-dotfiles"' > alt-rcrc
$ RCRC=./alt-rcrc lsrc
/*/.o-example:/*/.other-dotfiles/o-example (glob)
rcrc should run hooks with ~ instead of $HOME
$ mkdir ~/.other-dotfiles/hooks -p
> printf "#!/bin/sh\necho 'ran'\n" > ~/.other-dotfiles/hooks/post-up
> chmod +x ~/.other-dotfiles/hooks/post-up
> RCRC=./alt-rcrc rcup
ran
|