From a1554f56079e15c136495e7afbc2d04e5d231aef Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 31 May 2022 23:26:30 +0100 Subject: [PATCH] chore(dotfiles): allow setting the dotfiles path Allow overriding the dotfiles directory using the `DOTFILES_DIR` variable. --- bin/dotfiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dotfiles b/bin/dotfiles index 834e27e..7983c79 100755 --- a/bin/dotfiles +++ b/bin/dotfiles @@ -3,7 +3,7 @@ set -e CONFIG_DIR="$HOME/.config/dotfiles" -DOTFILES_DIR="$HOME/.dotfiles" +DOTFILES_DIR="${DOTFILES_DIR:-$HOME/.dotfiles}" PATH="${PATH}:${HOME}/.local/bin" clone_or_update_dotfiles() {