You know how when you hit the up arrow in bash it will fill in the last command you typed in? Is there any way to do this in nrepl?

So far I've been doing a reverse search (`C-r`), typing the first few characters of the line in question, killing the line(s) (`C-k`), jumping to the end of the buffer (`M->`) and yanking the killed line (`C-y`). Is there an easier way to do this?