history -w; tmux does the trick somewhat.
alias tmuxhist='history -w; tmux' creates an alias for it.
Unfortunately it's not possible to add command to be executed at startup in tmux configuration.
some guy posted help history as an answer, twice, which I downvoted, twice
I think he only downvoted my answer because I downvoted his, or is there something wrong with my answer?