Hacker News new | ask | show | jobs
by gjulianm 4710 days ago
Another neat expansion: !$ is the last argument of the last command you entered. Useful when you mistype the command name.
1 comments

Alt+. does the same and (at least in Zsh) allows you to cycle backwards.
More like Meta Up/Down, I tried for ten minutes on iTerm2 before remembering to use my Escape key.
Can configure the alt (option)-key behavior in your iTerm2 profile.

Left/Right Option Key Acts As

It is common to use a modifier to send so-called "meta keys". For most users, selecting "+Esc" here is the right choice. The "Meta" option sets the high bit of the input character, and is not compatible with modern systems.

http://www.iterm2.com/#/section/documentation