How to use arguments from previous command?

前端 未结 11 1771
一个人的身影
一个人的身影 2020-12-04 04:35

I know that Esc + . gives you the last argument of the last command.

But I\'m interested in first argument of the last command. Is there a key

11条回答
  •  [愿得一人]
    2020-12-04 04:45

    !^ will get you the first param, !$ will get you the last param, !:n will get you the nth element.

提交回复
热议问题