Hard requirements:
To install, run the following to your terminal.
I put it in my $HOME but feel free to put it where you want
git clone https://github.com/mrdotb/iex-history ~/.iex-history
cd ~/.iex-history
MIX_ENV=prod mix escript.build
Now we need to move the generated binary iex-history
in your $PATH
or add the ~/.iex-history
folder to your $PATH
mv iex-history ~/.local/bin/
Last step is to add the following line in your tmux config to call the script.
The tmux binding I use is tmux prefix
ctrl-r
.
bind C-r run-shell -b "bash ~/.iex-history/history.sh #{session_name} #{window_id} #D #{pane_current_command}"
Don't forget to reload tmux config
source-file ~/.tmux.conf