Hacker News new | past | comments | ask | show | jobs | submit login

Fewer key presses, but doesn't work if you're using vi bindings.



ESC _ or M-_ does work in vi mode though (and does the same thing as ESC ./M-.). Search for "yank-last-arg" in the bash manual.


Thank you.

Went searching how to do it in Zsh as well when the Zshell Line Editor (zle) is configured in vi mode:

$ bindkey -M viins '\e.' insert-last-word

Will make ESC-. work from insert mode.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: