3

On linux consoles I always use Alt + . to get the last argument of the previous command in history.

for example if I had

ls /tmp/test

as last command, and if I type

rm Alt -

this will result in

rm /tmp/test

On an Apple Terminal, this doesen't work, is there an alternative?

1
  • 3
    You can also check Preferences > Settings > Keyboard > Use option as meta key.
    – Lri
    Commented Jun 3, 2013 at 3:56

1 Answer 1

4

I found an answer here:

Equivalent to alt-. in terminal

ESC + . inserts the last argument and is the direct equivalent to Alt + . on Linux

see https://apple.stackexchange.com/a/85152/31470

Not the answer you're looking for? Browse other questions tagged .