<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Tmux on Bridge</title><link>https://quarternotecoda.com/tags/tmux/</link><description>Recent content in Tmux on Bridge</description><generator>Hugo -- 0.160.1</generator><language>en-us</language><lastBuildDate>Mon, 05 Aug 2013 00:00:00 +0000</lastBuildDate><atom:link href="https://quarternotecoda.com/tags/tmux/index.xml" rel="self" type="application/rss+xml"/><item><title>How To VIM+TMUX</title><link>https://quarternotecoda.com/posts/2013-08-05-how-to-vim-plus-tmux/</link><pubDate>Mon, 05 Aug 2013 00:00:00 +0000</pubDate><guid>https://quarternotecoda.com/posts/2013-08-05-how-to-vim-plus-tmux/</guid><description>&lt;iframe width="560" height="315" src="//www.youtube.com/embed/gB-JSh1EVME" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
&lt;p&gt;&lt;a href="http://twitter.com/chrishunt"&gt;Chris Hunt&lt;/a&gt; gave a great presentation at LA Ruby
Conf about
&lt;a href="http://www.confreaks.com/videos/2291-larubyconf2013-impressive-ruby-productivity-with-vim-and-tmux"&gt;VIM+TMUX&lt;/a&gt;.
There, he shows you a bunch of cool things you can do with VIM and TMUX.&lt;/p&gt;
&lt;p&gt;But he doesn&amp;rsquo;t tell you &lt;em&gt;how&lt;/em&gt; to do them.&lt;/p&gt;
&lt;p&gt;So here, I&amp;rsquo;m going to list each of the things he does and give you the
keystrokes/information you need to do what he&amp;rsquo;s talking about.&lt;/p&gt;
&lt;h2 id="tmux"&gt;TMUX&lt;/h2&gt;
&lt;p&gt;For these shortcuts, the &lt;code&gt;prefix&lt;/code&gt; is mapped to &lt;code&gt;C-b&lt;/code&gt; (i.e. &lt;code&gt;Ctrl-b&lt;/code&gt;) &amp;ndash; though
I believe it is much faster and more comfortable to map it to &lt;code&gt;C-a&lt;/code&gt;. Chris
even maps his to &lt;code&gt;C-j&lt;/code&gt; so you use two different hands.&lt;/p&gt;</description></item><item><title>Quick Script for TMUX pair sessions</title><link>https://quarternotecoda.com/posts/2013-06-06-quick-script-for-tmux-pair-sessions/</link><pubDate>Thu, 06 Jun 2013 00:00:00 +0000</pubDate><guid>https://quarternotecoda.com/posts/2013-06-06-quick-script-for-tmux-pair-sessions/</guid><description>&lt;p&gt;&lt;strong&gt;Update 2013-06-14:&lt;/strong&gt; &lt;em&gt;&lt;a href="https://gist.github.com/marksim/5785406"&gt;Improved the script&lt;/a&gt;, removing the github-auth dependency, some of the OS X dependencies, and added firewall punch-through (user specific) and ssh-command with external IP auto-copy to clipboard&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I wanted a quick and easy way to set up a new TMUX session with a brand new pair, so I came up with this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f0f0f0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#007020"&gt;#!/bin/sh
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gh-auth add &lt;span style="color:#bb60d5"&gt;$1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo cp ~/.ssh/authorized_keys /Users/pair/.ssh/authorized_keys
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo chown pair:staff /Users/pair/.ssh/authorized_keys
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gh-auth remove &lt;span style="color:#bb60d5"&gt;$1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tmux -S /tmp/pairing new -ds pairing &lt;span style="color:#666"&gt;&amp;amp;&amp;amp;&lt;/span&gt; chgrp staff /tmp/pairing &lt;span style="color:#666"&gt;&amp;amp;&amp;amp;&lt;/span&gt; tmux -S /tmp/pairing attach -t pairing
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo rm -f /Users/pair/.ssh/authorized_keys
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That will download ssh keys, create a tmux session, and attach to it. When you&amp;rsquo;re done it will cleanup so the other person has no access to your box.&lt;/p&gt;</description></item></channel></rss>