summaryrefslogtreecommitdiff
path: root/test/rcrc-tilde.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/rcrc-tilde.t')
-rw-r--r--test/rcrc-tilde.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rcrc-tilde.t b/test/rcrc-tilde.t
new file mode 100644
index 0000000..b3f98c1
--- /dev/null
+++ b/test/rcrc-tilde.t
@@ -0,0 +1,10 @@
+ $ . "$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)