Use `fzf`, instead of `peco`.
This commit is contained in:
parent
f57ee89459
commit
7a3348aa40
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue