Often times you need to execute an elixir function with
iex to enable pry breakpoints.
I found that I was doing a lot of fumbling in zsh to go back to the previous command, jump to the beginning of it and type out
Since I like to automate repeatitive processes, I came up with this:
bindkey -s "^Xi" "^[Iiex -S ^[A"
Dump this line in your
.bashrc and then all you have to do is
Ctrl+xi to insert
iex -S in front of the previously ran command.