1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

profile: added source for optional env variables

This commit is contained in:
2024-05-19 06:35:47 +02:00
parent d0ef41d968
commit c6b9ffcc69
10 changed files with 58 additions and 25 deletions

View File

@@ -79,5 +79,8 @@ export LESS_TERMCAP_ue="$(printf '%b' '')"; a="${a%_}"
echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "${HOME}/.bashrc"
echo "$0" | grep "zsh$" >/dev/null && [ -f ${ZDOTDIR}/.zshrc ] && source "${ZDOTDIR}/.zshrc"
# load optional variables
[ -f ~/.config/profile/local_profile ] && source "${HOME}/.config/profile/local_profile"
# Start graphical server if not already running.
[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec startx