From fc38e13e5ebac3a1225f787226e6477594a06044 Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 26 Jul 2021 21:40:50 -0700 Subject: [PATCH] declutter home dir --- helpers/default | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/helpers/default b/helpers/default index d5fa580..6262539 100644 --- a/helpers/default +++ b/helpers/default @@ -11,6 +11,8 @@ else DIR="$SHOESTRAP_BASE" fi +CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/shoestrap" + # # Run a given recipe. # @@ -408,7 +410,7 @@ is_installed () { local args=$* local name=${args//[ \/:@]/-} - if [[ -f ~/.shoestrap/installed/$name ]]; then + if [[ -f "$CONFIG_DIR/installed/$name" ]]; then log "'$name' is already installed." return 0 else @@ -424,8 +426,8 @@ set_installed () { local args=$* local name=${args//[ \/:@]/-} - mkdir -p "$HOME/.shoestrap/installed" - touch "$HOME/.shoestrap/installed/$name" + mkdir -p "$CONFIG_DIR/installed" + touch "$CONFIG_DIR/installed/$name" } #