Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I am curious as to whether there is an equivalent to the Alt-. command on Mac. On my computer it inserts the following character: ≥, instead of showing the preceding lines final parameter.

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

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

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

share|improve this answer
    
It's not exactly equivalent, because you can't for example press period twice while holding escape. The reason why using option as a meta key is disabled by default might be that many keyboard layouts have commonly used characters under option. –  Lri Jun 3 '13 at 7:58
add comment

You have to change the Terminal’s behavior to the alt key acts as a meta key (like in X11 Terms). After you check that, everytime you press alt + ., you’ll get the last argument from the previous command. (You can repeat that command n times)

Terminal Preferences

share|improve this answer
    
That is pretty sweet. Is there any reason why I don't want to turn that option on? –  Casebash Sep 10 '10 at 10:13
    
If you wanted to use the OS X extended characters, for example: alt + . = … or put a Copyright © (alt + c), you would have to find another way to do it, because your ALT key won’t cut it anymore ;) Other than that, if you work with the command line a lot, it’s a good idea to have it checked. –  Martín Marconcini Sep 10 '10 at 11:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.