1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-11-12 14:43:32 +01:00
dotfiles/bash/profile

18 lines
455 B
Bash

# ~/.bash_profile
[ -z "$DOTFILES" ] && source "$HOME/.profile"
# Always source local bash_profiles
[ -r "$HOME/.bash_profile.local" ] && source "$HOME/.bash_profile.local"
[ -r "$HOME/.local/bash_profile" ] && source "$HOME/.local/bash_profile"
if shopt -q login_shell
then
# This is a bash login shell
LOGINHISTORY=~/.login.history
if [ -w "${LOGINHISTORY}" ]; then
echo "$(date) ${USER}@${HOSTNAME}" >> $LOGINHISTORY
fi
unset LOGINHISTORY
fi