mkr + peco + tmux + ssh

mkr + peco + tmux + ssh

Mackerel Meetup #10 Tokyo

A658ec7f1badf73819dfa501165016c1?s=128

Yuuki Tsubouchi (yuuk1)

April 27, 2017
Tweet

Transcript

  1. 14.

    function peco-mkr-roles() { local selected_role=$(mkr services | jq -rM '[.[]

    | .name as $name | .roles // [] | map("\($name) \ (.)")] | flatten | .[]' | peco) if [ -n "${selected_role}" ]; then local BUFFER="tssh \`roles "$ {selected_role}"\`" fi zle clear-screen } zle -N peco-mkr-roles
  2. 15.

    $ mkr services | jq -rM '[.[] | .name as

    $name | .roles // [] | map("\($name) \(.)")] | flatten | .[]' | peco
  3. 19.