1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-11-16 08:33:30 +01:00
dotfiles/bash/profile

14 lines
311 B
Text
Raw Normal View History

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