summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGravatar Rebecca Meritz <rebecca@meritz.com>2017-10-25 23:46:43 -0400
committerGravatar Mike Burns <mburns@thoughtbot.com>2017-10-27 14:51:01 -0400
commitd2e4daba376dcb96c1cad5fd89413f154a8c4a10 (patch)
tree44e180abdee5e0e21881f1eb8d36ba7c10b2cf23 /bin
parent95e6ca15aabd71ac1709ddb5e10e3baa11eeee66 (diff)
Expand ~ in DOTFILES_DIRS
Hat tip to fgatham for the `eval echo` tip. This means both `~` and e.g. `~dmr` work correctly.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lsrc.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/lsrc.in b/bin/lsrc.in
index b0dc30a..5a0774a 100755
--- a/bin/lsrc.in
+++ b/bin/lsrc.in
@@ -320,6 +320,8 @@ relative_root_dir="$PWD"
for DOTFILES_DIR in $DOTFILES_DIRS; do
cd "$relative_root_dir"
+ DOTFILES_DIR="$(eval echo "$DOTFILES_DIR")"
+
if is_relative $DOTFILES_DIR; then
DOTFILES_DIR="$PWD/$DOTFILES_DIR"
fi