1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-10-31 17:43:33 +01:00
dotfiles/bash/profile

13 lines
311 B
Bash

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