Groups
Groups
Sign in
Groups
Groups
BeagleBoard
Conversations
Labels
About
Send feedback
Help
How to enable bash history?
26 views
beaglebone-black
Skip to first unread message
ith...@gmail.com
unread,
Dec 25, 2016, 4:27:52 AM
12/25/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
12/25/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BeagleBoard
Add to .bashrc
PROMPT_COMMAND="history -a"
shopt -s histappend
Reply all
Reply to author
Forward
0 new messages