ipython && tmux - saving history to a file
Hey,
I had an ipython console open inside a tmux split window and I needed to save the history to a file.
Since I can't copy & paste the data from the screen (I was in the middle of a session, so the next time I would configure it correctly using this).
So I found a quicker way, Roberto Z wrote in his comment that in order to save the session's history you can use readline package:
import readline
readline.write_history_file('/home/user/current_history')
This works like a charm in Ubuntu.
- Tal Kain