How to enable bash history?

26 views
Skip to first unread message

ith...@gmail.com

unread,
Dec 25, 2016, 4:27:52 AM12/25/16
to BeagleBoard
In principle, everything looks ok:

# set -o | grep history
history         on
#  echo $HISTFILE
/root/.bash_history
# echo $HISTSIZE
500
# echo $HISTFILESIZE
500

But .bash_history is empty and the history is lost between sessions.

ith...@gmail.com

unread,
Dec 25, 2016, 4:34:18 AM12/25/16
to BeagleBoard
Add to .bashrc

PROMPT_COMMAND="history -a"
shopt -s histappend


Reply all
Reply to author
Forward
0 new messages