<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>justinchouinard.com - Latest Comments</title><link>http://jcdotcom.disqus.com/</link><description></description><atom:link href="https://jcdotcom.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 02 Mar 2011 02:56:25 -0000</lastBuildDate><item><title>Re: Justin Chouinard</title><link>http://www.justinchouinard.com/blog/2010/04/10/fix-stale-ssh-environment-variables-in-gnu-screen-and-tmux#comment-158886972</link><description>&lt;p&gt;Thanks for this guys!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">krunkosaurus</dc:creator><pubDate>Wed, 02 Mar 2011 02:56:25 -0000</pubDate></item><item><title>Re: Justin Chouinard</title><link>http://www.justinchouinard.com/blog/2010/04/10/fix-stale-ssh-environment-variables-in-gnu-screen-and-tmux#comment-56442483</link><description>&lt;p&gt;The preexec from Eivind Uggedal works great with a tmux session that uses the default tmux socket. Here's an enhancement that works with any tmux socket:&lt;/p&gt;&lt;pre&gt;&lt;code&gt;function preexec() {&lt;br&gt;  if [[ -n $TMUX ]]; then&lt;br&gt;      TMUX_SOCK=$(echo $TMUX|cut -d , -f 1)&lt;br&gt;      NEW_SSH_AUTH_SOCK=$(tmux -S $TMUX_SOCK showenv|grep ^SSH_AUTH_SOCK|cut -d = -f 2)&lt;br&gt;      if [[ -n $NEW_SSH_AUTH_SOCK ]] &amp;amp;&amp;amp; [[ -S $NEW_SSH_AUTH_SOCK ]]; then&lt;br&gt;          SSH_AUTH_SOCK=$NEW_SSH_AUTH_SOCK&lt;br&gt;      fi&lt;br&gt;  fi&lt;br&gt;}&lt;code&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/code&gt;&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">scgilardi</dc:creator><pubDate>Sat, 12 Jun 2010 22:54:08 -0000</pubDate></item><item><title>Re: Justin Chouinard</title><link>http://www.justinchouinard.com/blog/2010/04/10/fix-stale-ssh-environment-variables-in-gnu-screen-and-tmux#comment-55469635</link><description>&lt;p&gt;I see it now - thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jvc</dc:creator><pubDate>Wed, 09 Jun 2010 08:38:54 -0000</pubDate></item><item><title>Re: Justin Chouinard</title><link>http://www.justinchouinard.com/blog/2010/04/10/fix-stale-ssh-environment-variables-in-gnu-screen-and-tmux#comment-55438822</link><description>&lt;p&gt;I think you're mistaken, it works flawlessly here on reattachment of a tmux session. Look up update-environment in tmux's manpage to see why it works.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eivind Uggedal</dc:creator><pubDate>Wed, 09 Jun 2010 02:01:14 -0000</pubDate></item><item><title>Re: Justin Chouinard</title><link>http://www.justinchouinard.com/blog/2010/04/10/fix-stale-ssh-environment-variables-in-gnu-screen-and-tmux#comment-55385319</link><description>&lt;p&gt;It does look like there is a much more simple solution for just tmux with showenv/setenv, but I don't think it's this. The above will just replace SSH_AUTH_SOCK with what it is set to already.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jvc</dc:creator><pubDate>Tue, 08 Jun 2010 18:37:19 -0000</pubDate></item><item><title>Re: Justin Chouinard</title><link>http://www.justinchouinard.com/blog/2010/04/10/fix-stale-ssh-environment-variables-in-gnu-screen-and-tmux#comment-55278368</link><description>&lt;p&gt;A much simpler solution for tmux is to put this inside your .zshrc:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;function preexec() {&lt;br&gt;  if [[ -n $TMUX ]]; then&lt;br&gt;    NEW_SSH_AUTH_SOCK=`tmux showenv|grep ^SSH_AUTH_SOCK|cut -d = -f 2`&lt;br&gt;    if [[ -n $NEW_SSH_AUTH_SOCK ]] &amp;amp;&amp;amp; [[ -S $NEW_SSH_AUTH_SOCK ]]; then&lt;br&gt;      SSH_AUTH_SOCK=$NEW_SSH_AUTH_SOCK&lt;br&gt;    fi&lt;br&gt;  fi&lt;br&gt;}&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eivind Uggedal</dc:creator><pubDate>Tue, 08 Jun 2010 08:43:57 -0000</pubDate></item><item><title>Re: justinchouinard.com</title><link>http://www.justinchouinard.com/blog/2009/11/22/upgraded-to-blogofile#comment-23842131</link><description>&lt;p&gt;testing a comment&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jvc</dc:creator><pubDate>Sun, 22 Nov 2009 19:23:58 -0000</pubDate></item></channel></rss>