<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
>
    <channel>
        <title>Silas Sewell - GNU Screen</title>
        <atom:link href="http://www.silassewell.com/blog/tag/gnu-screen/rss2.xml" rel="self" type="application/rss+xml" />
        <link>http://www.silassewell.com/blog/tag/gnu-screen</link>
        <description>Infrastructure Development</description>
        <lastBuildDate>Sat, 08 Jan 2011 00:00:00 GMT</lastBuildDate>
        <generator>http://www.silassewell.com/</generator>
        <language>en</language>
        <sy:updatePeriod>hourly</sy:updatePeriod>
        <sy:updateFrequency>1</sy:updateFrequency>

        <item>
            <title>GNU Screen Profiles</title>
            <link>http://www.silassewell.com/blog/2010/07/14/gnu-screen-profiles/</link>
            <pubDate>Wed, 14 Jul 2010 00:00:00 GMT</pubDate>
            <dc:creator>silas</dc:creator>
            <category><![CDATA[Fedora]]></category><category><![CDATA[GNU Screen]]></category><category><![CDATA[Screen]]></category>
            <guid isPermaLink="true">http://www.silassewell.com/blog/2010/07/14/gnu-screen-profiles/</guid>
            <description><![CDATA[<p>If you're a regular <a href="http://www.gnu.org/software/screen/" title="GNU Screen">GNU Screen</a> user might find this hack for creating
profiles useful.</p>

<ol>
<li><p>Create a <code class="prettyprint">.screen</code> directory in your home directory.</p>

<pre><code class="prettyprint">mkdir "$HOME/.screen"
</code></pre></li>
<li><p>Add the following to your <code class="prettyprint">.bashrc</code> or <code class="prettyprint">.bash_profile</code>.</p>

<pre><code class="prettyprint">sp() {
  if [[ -f "$HOME/.screen/$1" ]]; then
    screen -c "$HOME/.screen/$1"
  else
    echo "Unknown screen profile '$1'."
  fi  
}
</code></pre></li>
<li><p>Create a file in the <code class="prettyprint">~/.screen</code> directory with whatever profile name you
 would like to use (below is a sample profile named <code class="prettyprint">tyrion</code>).</p>

<p>You should copy the first line into each profile as it loads your default
 GNU Screen settings.</p>

<pre><code class="prettyprint">source "$HOME/.screenrc"

chdir "$HOME/src/tyrion/src"
screen -t code  0

chdir "$HOME/src/tyrion"
screen -t build  1

chdir "$HOME/src/tyrion/tests"
screen -t tests  2

chdir "$HOME/src/tyrion"
</code></pre></li>
<li><p>Reload your shell and test your profile (replace <code class="prettyprint">tyrion</code> with whatever
 name you picked).</p>

<pre><code class="prettyprint">[silas@example ~]$ sp tyrion
</code></pre></li>
</ol>]]></description>
        </item>

        <item>
            <title>OS X’s GNU Screen – Open in the Current Working Directory</title>
            <link>http://www.silassewell.com/blog/2008/04/05/os-xs-gnu-screen-open-current-working-directory/</link>
            <pubDate>Sat, 05 Apr 2008 00:00:00 GMT</pubDate>
            <dc:creator>silas</dc:creator>
            <category><![CDATA[GNU Screen]]></category><category><![CDATA[Mac OS X]]></category><category><![CDATA[Operating Systems]]></category><category><![CDATA[Software]]></category>
            <guid isPermaLink="true">http://www.silassewell.com/blog/2008/04/05/os-xs-gnu-screen-open-current-working-directory/</guid>
            <description><![CDATA[<p>How to get GNU Screen working properly in Mac OS X.</p>

<p><strong>~/.bashrc</strong></p>

<pre><code class="prettyprint">alias screen='export SCREENPWD=$(pwd); /usr/bin/screen'
export SHELL='/bin/bash -rcfile ~/.bash_profile';

case "$TERM" in 
    'screen')
         cd $SCREENPWD
         ;; 
esac
</code></pre>

<p><strong>~/.screenrc</strong></p>

<pre><code class="prettyprint">startup_message off
shell -$SHELL
</code></pre>]]></description>
        </item>

        <item>
            <title>OS X GNU Screen Proper Bash Prompt</title>
            <link>http://www.silassewell.com/blog/2008/02/23/os-xs-gnu-screen-proper-bash-prompt/</link>
            <pubDate>Sat, 23 Feb 2008 00:00:00 GMT</pubDate>
            <dc:creator>silas</dc:creator>
            <category><![CDATA[GNU Screen]]></category><category><![CDATA[Mac OS X]]></category><category><![CDATA[Operating Systems]]></category><category><![CDATA[Software]]></category>
            <guid isPermaLink="true">http://www.silassewell.com/blog/2008/02/23/os-xs-gnu-screen-proper-bash-prompt/</guid>
            <description><![CDATA[<p>How to get GNU Screen working properly in Mac OS X.</p>

<p><strong>~/.bashrc</strong></p>

<pre><code class="prettyprint">alias screen='export SCREENPWD=$(pwd); /usr/bin/screen'
export SHELL='/bin/bash -rcfile ~/.bash_profile';

case "$TERM" in
    'screen')
         cd $SCREENPWD
         ;;
esac
</code></pre>

<p><strong>~/.screenrc</strong></p>

<pre><code class="prettyprint">startup_message off
shell -$SHELL
</code></pre>]]></description>
        </item>

    </channel>
</rss>
