mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-11-16 08:33:30 +01:00
13 lines
311 B
Bash
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
|