Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use ALT. very frequently on bash. But some time I go one past the parameter I want . So I was looking for a way to call the next parameter from the history.

share|improve this question
up vote 2 down vote accepted

Like most Readline commands, yank-last-arg (the command bound to Alt.) can take a numeric argument. Type Alt-, then Alt. to invoke the command with an argument of -1 (- by itself defaults to -1 if it isn't followed by an actual number). A negative number reverses the direction of the search for the "last" arg.

share|improve this answer

You must log in to answer this question.

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