LoginSignup
13
12

More than 5 years have passed since last update.

PecoからRakeタスクを実行する

Posted at

Rakeタスクを先頭から入力するのがダルいのでpecoを組み合わせてみた。

.zshrc
pecorake() { local task=$(rake -W | peco | cut -d " " -f 2); rake $task }

Escでキャンセルしたときを考慮してないけど、これだけの設定でかなり捗るようになった。peco便利。

13
12
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
13
12