Using the fish shell I needed to increase a timeout to allow me to use Esc-. keyboard sequence to print the last argument from the previous line:
Add the following line to ~/.config/fish/fish_variables
to fix the problem:
SETUVAR fish_escape_delay_ms:300