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"
原文地址:https://www.cnblogs.com/amoy9812/p/8403433.html
时间: 2024-12-17 10:24:36