From 04285a5a39abab5a7d2d24974b67d2922fdf8f4c Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Fri, 6 Jul 2018 09:22:56 +0200 Subject: [PATCH] Allow loading custom profile from ~/.local_profile. --- home/dotfiles/profile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/home/dotfiles/profile b/home/dotfiles/profile index b3a2092..8a01f2e 100644 --- a/home/dotfiles/profile +++ b/home/dotfiles/profile @@ -248,3 +248,15 @@ if [ $PROFILE_SYSTEMD -gt 0 ]; then log "$(systemctl --user import-environment PATH)" fi section_end + +section "custom profile" +if [ $PROFILE_CUSTOM -gt 0 ]; then + log "Checking if local profile code exists at ~/.local_profile..." + if [ -f ~/.local_profile ]; then + log "Exists, loading." + source ~/.local_profile + else + log "Does not exist, skipping." + fi +fi +section_end