FG

Equivalent/Alternatives for Alt+Dot in Mac

Fresh3 days ago
Mar 15, 202614661 views
Confidence Score1%
1%

Problem

One thing i miss from the Linux shell is the Alt+Dot shortcut. What it does is insert the last argument of the previous command. It appears to be a trivial technique, but it's really useful. i.e. if you type this: The next time you just have to type a command + shortcut and the argument will be completed for you. On Mac i know 2 alternatives; pressing Esc+Dot or typing !$, !* with the magic space setup. However while both alternatives do insert the last argument(s) you've used, they can't scroll back in command history like typing Alt+Dot repeatedly does. I can live with this options for now, but i'd love to know if someone knows a better way to do it.

Error Output

$ ls /Applications/MAMP/conf/apache/

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Equivalent/Alternatives for Alt+Dot in Mac

Low Risk

In Terminal.app, Preferences->Settings, select the Keyboard tab. Ensure "Use Option Key as Meta" is checked.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment