Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I can append a last used parameter via the keyboard shortcut Alt + . yet sometimes, I type too fast and miss my actual target. If I wanted to go back one instance, is there a way to do it?

I unsuccessfully tried to modify it via Shift and Ctrl.

How to revert direction of the last parameter shortcut?

share|improve this question
    
I normally swear and try again :) –  Bernhard Jul 15 '13 at 7:45
    
@Bernhard I've just been there. Again. Hence the question ;) –  k0pernikus Jul 15 '13 at 7:46
2  
Looks like this has been asked before on superuser: How can you reverse the direction of alt-period in Bash? –  ahilsend Jul 15 '13 at 9:29
    
Define "target" and "instance" please. –  glenn jackman Jul 15 '13 at 10:19
1  
@glennjackman Typing alt. four times, while you needed three. –  Bernhard Jul 15 '13 at 11:41

1 Answer 1

up vote 2 down vote accepted

Like most commands, Alt+. takes a numeric argument. Passing an argument of -1 reverses the direction. Hence:

Alt+.
Alt+.
Alt+.
Oops, overshot!
Alt+-, Alt+.

share|improve this answer

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.