LoginSignup
4
6

More than 5 years have passed since last update.

zshでN個前のコマンドをほにゃららして実行

Last updated at Posted at 2013-02-14
  • 直前のコマンドを置換して実行 !:s/ls/vim
  • 直前のコマンドの引数とかを取得して実行 ls !:^

他の単語指示子とか

!:0 コマンド自体
!1 or !:^ 1個目の引数
!:n n個目の引数
!:* 引数全部
!:x-y xからyのやつ

参考

4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6