mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-24 17:57:03 +00:00
chore(config): exports now loaded from .config
This commit is contained in:
@@ -459,3 +459,13 @@ msg "Setting up miscellaneous configuration"
|
|||||||
export CHEAT_USE_FZF=true
|
export CHEAT_USE_FZF=true
|
||||||
export SQLITE_HISTORY="${XDG_CACHE_HOME}/sqlite_history"
|
export SQLITE_HISTORY="${XDG_CACHE_HOME}/sqlite_history"
|
||||||
|
|
||||||
|
X_EXPORTS_FILES=(
|
||||||
|
"$HOME/.config/exports-secret"
|
||||||
|
"$HOME/.config/exports-$(hostname)"
|
||||||
|
"$HOME/.config/exports-$(hostname)-secret"
|
||||||
|
)
|
||||||
|
for exportFile in "${X_EXPORTS_FILES[@]}"; do
|
||||||
|
[ -f "$exportFile" ] && source "$exportFile" && msg "Sourced $exportFile"
|
||||||
|
done
|
||||||
|
unset X_EXPORTS_FILES
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ CONFIG_HOST="$(hostname -s)"
|
|||||||
# Enable debugging if requested
|
# Enable debugging if requested
|
||||||
[ "$DEBUG" = "1" ] && set -x
|
[ "$DEBUG" = "1" ] && set -x
|
||||||
|
|
||||||
CONFIG_PATH="${DOTFILES}/config"
|
CONFIG_PATH="${HOME}/.config"
|
||||||
|
|
||||||
[ -d "$DOTFILES" ] || {
|
[ -d "$DOTFILES" ] || {
|
||||||
msg_err "Error: DOTFILES is not set or $DOTFILES does not exist"
|
msg_err "Error: DOTFILES is not set or $DOTFILES does not exist"
|
||||||
|
|||||||
Reference in New Issue
Block a user