From d2e4daba376dcb96c1cad5fd89413f154a8c4a10 Mon Sep 17 00:00:00 2001 From: Rebecca Meritz Date: Wed, 25 Oct 2017 23:46:43 -0400 Subject: Expand ~ in DOTFILES_DIRS Hat tip to fgatham for the `eval echo` tip. This means both `~` and e.g. `~dmr` work correctly. --- bin/lsrc.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') 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 -- cgit v1.2.3