From aa7455f9107b309dde0f3088cb1be5c995e43600 Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Wed, 1 Nov 2023 17:03:25 -0400 Subject: [PATCH] more changes to support a FEISTY_MEOW_PERSONAL_HOME variable this acts in place of $HOME for any custom purposes that we refer to $HOME for, when there's a choice in the matter. we can't change things about the system, like ssh looking for configs in $HOME/.ssh and we don't want to. this is just for assets related to or used by the user that they want dealt with properly under their specific home directory. if it's not already set, then we default to $HOME for the value. --- scripts/archival/snarf_notes.pl | 2 +- scripts/core/variables.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/archival/snarf_notes.pl b/scripts/archival/snarf_notes.pl index 2c5bfe66..24020b79 100644 --- a/scripts/archival/snarf_notes.pl +++ b/scripts/archival/snarf_notes.pl @@ -28,7 +28,7 @@ use Env qw(HOME); local($number) = &retrieve_number("aa_backup"); # variables for directory location to backup and the file to dump it in. -local($root) = "$HOME"; +local($root) = "$FEISTY_MEOW_PERSONAL_HOME"; local($snarf_file_base) = &snarf_prefix("notes"); local($snarf_file) = &snarf_name($snarf_file_base, $number); diff --git a/scripts/core/variables.sh b/scripts/core/variables.sh index 98045017..5a0c0b7b 100644 --- a/scripts/core/variables.sh +++ b/scripts/core/variables.sh @@ -222,6 +222,12 @@ define_yeti_variable DEFAULT_FEISTYMEOW_ORG_DIR=/opt/feistymeow.org # set this so nechung can find its data. define_yeti_variable NECHUNG=$FEISTY_MEOW_APEX/infobase/fortunes.dat + + # set a personal home directory that can be overridden. + define_yeti_variable FEISTY_MEOW_PERSONAL_HOME + if [ -z "$FEISTY_MEOW_PERSONAL_HOME" ]; then + define_yeti_variable FEISTY_MEOW_PERSONAL_HOME="$HOME" + fi ## # establish a pipe for less to see our beloved syntax highlighting. ## define_yeti_variable LESSOPEN="| source-highlight -f esc -o STDOUT -i %s" -- 2.34.1