Debian Codegraph @

test/rcrc-tilde.t

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