Allow loading custom profile from ~/.local_profile.

master
Icedream 2018-07-06 09:22:56 +02:00
parent 756423d3bd
commit 04285a5a39
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 12 additions and 0 deletions

View File

@ -248,3 +248,15 @@ if [ $PROFILE_SYSTEMD -gt 0 ]; then
log "$(systemctl --user import-environment PATH)" log "$(systemctl --user import-environment PATH)"
fi fi
section_end 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