4 ms·
It'll save you a few more keystrokes if you do cat !$ | less !$ is "the last argument to the previous command".
by jaylevitt 14y ago
It'll save you a few more keystrokes if you do
cat !$ | less
!$ is "the last argument to the previous command".
- mrud 14y agoIf you do less <ESC>. it will save you even more keystrokes.
- voltagex_ 14y agoDo you remap ESC to another key?
- mrud 14y agoNo, but for me <ESC> acts like <META> and the actual keybinding is M-. or M-_. The command you are looking for is yank-last-arg for bash and insert-last-word for zsh.
- graywh 14y agoYou have that backwards--Meta actually means "prepend Escape" (or 8th bit on, but that's another discussion).