<?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>module?.exports = Blog &#187; virtualenv</title>
	<atom:link href="http://benatkin.com/tag/virtualenv/feed/" rel="self" type="application/rss+xml" />
	<link>http://benatkin.com</link>
	<description>Ben Atkin&#039;s blog</description>
	<lastBuildDate>Thu, 10 May 2012 04:36:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>setting up a default virtualenv</title>
		<link>http://benatkin.com/2009/12/09/setting-up-a-default-virtualenv/</link>
		<comments>http://benatkin.com/2009/12/09/setting-up-a-default-virtualenv/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 01:11:47 +0000</pubDate>
		<dc:creator>Ben Atkin</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[virtualenv]]></category>

		<guid isPermaLink="false">http://benatkin.com/weblog/?p=464</guid>
		<description><![CDATA[After using virtualenv for months, I finally got around to putting my main virtualenv into my bash profile. It&#8217;s really simple. All I had to do was add the following to ~/.bash_profile: # python virtualenv source /Users/ben/virtualenv/pearl/bin/activate This worked, but &#8230; <a href="http://benatkin.com/2009/12/09/setting-up-a-default-virtualenv/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After using <a href="http://pypi.python.org/pypi/virtualenv">virtualenv</a> for months, I finally got around to putting my main virtualenv into my bash profile. It&#8217;s really simple. All I had to do was add the following to ~/.bash_profile:</p>
<p><code># python virtualenv<br />
source /Users/ben/virtualenv/pearl/bin/activate</code></p>
<p>This worked, but there was one thing I wanted to turn off. The <em>activate</em> script that virtualenv creates adds the name of the current virtualenv to the front of the prompt. This is useful when switching between virtualenv directories, but it&#8217;s not very useful to me when I&#8217;m on the default virtualenv. So I moved my prompt definition to the bottom of the file, so it gets executed after the <em>source</em> command above.</p>
<p><code># prompt (moved after virtualenv so it isn't shown)<br />
PS1="\[\e[31;40m\]\@ \[\e[32;40m\]\w \[\e[36;40m\]\$\[\e[0m\] "</code></p>
<p>By the way, to keep the prompt I use the most often short, I set my own colors. It&#8217;s easy for me to tell that it&#8217;s my main shell, and since it&#8217;s my main shell, I know the username and hostname associated with it.</p>
]]></content:encoded>
			<wfw:commentRss>http://benatkin.com/2009/12/09/setting-up-a-default-virtualenv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

