代码改变世界

linux bash history

2015-09-08 11:07  cmsd  阅读(288)  评论(0编辑  收藏  举报

vim /etc/profile

 

export HISTSIZE=10000
export HISTTIMEFORMAT="`whoami` : %F %T : "
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
shopt -s histappend