<?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>Jason's .plan &#187; General</title>
	<atom:link href="http://blogs.digitar.com/jjww/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.digitar.com/jjww</link>
	<description>thoughts &#38; musings</description>
	<lastBuildDate>Thu, 18 Mar 2010 06:29:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>BASH-like working directory prompt in PowerShell</title>
		<link>http://blogs.digitar.com/jjww/2007/09/bash-like-working-directory-prompt-in-powershell/</link>
		<comments>http://blogs.digitar.com/jjww/2007/09/bash-like-working-directory-prompt-in-powershell/#comments</comments>
		<pubDate>Fri, 07 Sep 2007 00:39:28 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[General General General
Most Linuxes (i.e. Gentoo) will set your BASH prompt to the current working directory&#8230;which for BASH means only displaying the name of the deepest directory you&#39;re sitting in. PowerShell also defaults its prompt&#160;to the current working directory, but for PS that means returning the full path. What do you do if the directory [...]]]></description>
			<content:encoded><![CDATA[<p>General</CATEGORY> General</CATEGORY> General
<p>Most Linuxes (i.e. Gentoo) will set your BASH prompt to the current working directory&#8230;which for BASH means only displaying the name of the deepest directory you&#39;re sitting in. PowerShell also defaults its prompt&nbsp;to the current working directory, but for PS that means returning the full path. What do you do if the directory you&#39;re in is &#8220;C:Documents and SettingsTest UserMy DocumentsSubversion ProjectsProject 1Development Branch&#8221;? Well, it ain&#39;t exactly pretty. There&#39;s no option within the get-location cmdlet that will return a &#8220;short&#8221; working directory (the default PS prompt uses get-location). So kemosabe, I proffer up this solution to acquiring a BASH-like working directory prompt in PowerShell:</p>
<ol>
<li> Create&nbsp;a directory called <strong>%DefaultUserProfile%My DocumentsWindowsPowerShell</strong></li>
<li> Inside your shiny new directory, create a file called profile.ps1 and place this code inside (if you already have a profile.ps1, just add this code to it):</li>
</ol>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px"><p align="left"> function prompt<br /> {<br /> &nbsp;&#8221;PS &#8221; + (get-location).Path.Split(&#8220;&#8221;)[(get-location).Path.Split("").Length -1] + &#8220;&gt;&#8221;<br /> }</p>
</blockquote>
<p dir="ltr"> As they say in the land of Brie&#8230;c&#39;est tout. That&#39;s all folks. <img src='http://blogs.digitar.com/jjww/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Hopefully, this helps someone equally frustrated.</p>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/BASH" rel="tag">BASH</a>, <a href="http://www.technorati.com/tag/Monad" rel="tag">Monad</a>, <a href="http://www.technorati.com/tag/PowerShell" rel="tag">PowerShell</a>, <a href="http://www.technorati.com/tag/Prompt" rel="tag">Prompt</a>, <a href="http://www.technorati.com/tag/working directory" rel="tag">working directory</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitar.com/jjww/2007/09/bash-like-working-directory-prompt-in-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Searching FogBugz from IE7</title>
		<link>http://blogs.digitar.com/jjww/2006/02/searching-fogbugz-from-ie7/</link>
		<comments>http://blogs.digitar.com/jjww/2006/02/searching-fogbugz-from-ie7/#comments</comments>
		<pubDate>Sat, 04 Feb 2006 02:18:31 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Searching FogBugz from IE7
Despite telling myself that my time with IE7 was just &#8220;one crazy night&#8221;, I decided it would be cool to replicate the FogBugz Firefox search plugin for IE7. If you don&#39;t know the wonder that is FogBugz spend some time here.
Basically, this search provider plugin will allow you to query FogBugz right [...]]]></description>
			<content:encoded><![CDATA[<p>Searching FogBugz from IE7<br />
Despite telling myself that my time with IE7 was just &#8220;one crazy night&#8221;, I decided it would be cool to replicate the <a href="http://www.fogcreek.com/FogBugz/docs/40/Articles/Firefoxsearch.html">FogBugz Firefox search plugin</a> for IE7. If you don&#39;t know the wonder that is FogBugz spend some time <a href="http://www.fogcreek.com/FogBugz/index.html">here</a>.<br />
<br/>Basically, this search provider plugin will allow you to query FogBugz right from IE7&#39;s integrated search box. The result, is just as if you were pounding away in FogBugz&#39;s own search box.<br />
<br/><br />
<a href="javascript: window.external.AddSearchProvider(&#39;http://www.digitar.com/FogSearch/IE7/fogbugz.xml&#39;)">Click here</a> to install the search provider for FogBugz.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitar.com/jjww/2006/02/searching-fogbugz-from-ie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
