Upgrade to Pro — share decks privately, control downloads, hide ads and more …

mkr + peco + tmux + ssh

mkr + peco + tmux + ssh

Mackerel Meetup #10 Tokyo

Yuuki Tsubouchi (yuuk1)

April 27, 2017
Tweet

More Decks by Yuuki Tsubouchi (yuuk1)

Other Decks in Programming

Transcript

  1. 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. $ mkr services | jq -rM '[.[] | .name as

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