.profile: check ~/.local/profile aswell

This commit is contained in:
Eric Teunis de Boone 2020-04-15 21:50:04 +02:00
parent 6e21b01ee6
commit d12c4a935f
2 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,7 @@ fi
# Load main things
if [ -d "$DOTBASH/bash.d" ]; then
for f in colours aliases history 00-marietje prompt_command password-store
for f in colours aliases history prompt_command password-store
do
if [ -r "$DOTBASH/bash.d/$f" ]; then
source "$DOTBASH/bash.d/$f"

View File

@ -9,3 +9,6 @@ export XDG_DOTFILES_DIR="$HOME/.dotfiles"
# Always source a local profile
[ -r "$HOME/.profile.local" ] && source "$HOME/.profile.local"
# Also check in .local for a profile
[ -r "$HOME/.local/profile" ] && source "$HOME/.local/profile"