HFILE=`who -m | awk ‘{print $1}‘`
readonly HISTFILE=/var/history/$HFILE-$USER-$UID.log
readonly HISTFILESIZE=50000
readonly HISTSIZE=10000
readonly HISTTIMEFORMAT=‘%F %T ‘
readonly HISTCONTROL=ignoredups
shopt -s histappend
readonly PROMPT_COMMAND="history -a"