Hacker News new | ask | show | jobs
by lolive 1322 days ago
Anyone/anything solving the issue of bash histories in multiple (intricated) tmux sessions is an INSTANT win !!!!

[Q: can this tool help? As far as in understand, it seems that YEEEES!!!]

2 comments

I solved that particular issue by using this in my .bashrc

#write to history file at each shell prompt

    export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
(Unless I read your comment wrong.)
Yup exactly! This way you'll never again lose a history entry.