From ad32c617d55a9e02c87edc8441675278872a295f Mon Sep 17 00:00:00 2001 From: steadfasterX Date: Fri, 14 Apr 2023 09:32:55 +0000 Subject: [PATCH] support per device config when the file `~/.divested.vars.${BDEVICE}` exists it get sourced after the default variables set by init.sh. so to make use of this you have to `export BDEVICE=hotdog` before `source ../Scripts/init.sh`. Then the file `~/.divested.vars.hotdog` will be sourced - if existent. this way one can: - override defaults without touching the init.sh (makes git pull more convenient) - set different settings for different devices Signed-off-by: steadfasterX --- Scripts/init.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/init.sh b/Scripts/init.sh index 74552274..6c1de8e9 100644 --- a/Scripts/init.sh +++ b/Scripts/init.sh @@ -106,6 +106,7 @@ export DOS_THEME_700="E64A19"; #Deep Orange 700 # #END OF USER CONFIGURABLE OPTIONS # +[ -f "$HOME/.divested.vars.${BDEVICE}" ] && source $HOME/.divested.vars.${BDEVICE} && echo "included $HOME/.divested.vars.${BDEVICE} config" umask 0022;