Use `fzf`, instead of `peco`.

This commit is contained in:
Kazuhiro MUSASHI 2019-11-03 11:55:06 +08:00
parent f57ee89459
commit 7a3348aa40
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
desc 'Invoke itamae command'
task :itamae do
node = `ls -1 nodes/*.json | xargs -I % basename % .json | peco`
node = `ls -1 nodes/*.json | xargs -I % basename % .json | fzf`
node.chomp!
sh "ITAMAE_PASSWORD=musashi bundle ex itamae ssh --host #{node} -j nodes/#{node}.json -p 10022 entrypoint.rb"

View File

@ -2,7 +2,7 @@
desc 'Invoke itamae command for the first time'
task :prep do
node = `ls -1 nodes/*.json | xargs -I % basename % .json | peco`
node = `ls -1 nodes/*.json | xargs -I % basename % .json | fzf`
node.chomp!
sh "ITAMAE_PASSWORD=musashi bundle ex itamae ssh --host #{node} -j nodes/#{node}.json entrypoint.rb"